lib.rs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //! D3D12.X on host D3D12.
  2. //!
  3. //! D3D12.X records commands from code inlined into the title, which writes
  4. //! packets into the command list while its put pointer is below a limit and
  5. //! calls the list's method otherwise. Our lists keep the limits at zero, so
  6. //! every command arrives here as a call, to be run on host D3D12. The
  7. //! title's GPU addresses are CPU addresses (console memory is unified).
  8. //!
  9. //! [`device`] is the device object titles create, [`dxgi`] its adapter side,
  10. //! [`resource`] heaps and resources, [`fence`] fences, [`queue`] command
  11. //! queues, [`list`] command allocators and lists, [`descriptor`]
  12. //! descriptor heaps, [`root`] root signatures, [`query`] query heaps,
  13. //! [`signature`] command signatures, [`pipeline`] pipeline states,
  14. //! [`frame`] frame pacing, [`object`] what all console graphics objects
  15. //! share, [`console`] which console model the title sees. Planned:
  16. //! `present` (swap chain).
  17. #[cfg(all(windows, feature = "diagnostics"))]
  18. mod capture;
  19. pub mod console;
  20. #[cfg(all(windows, feature = "diagnostics"))]
  21. mod copystat;
  22. pub mod descriptor;
  23. pub mod device;
  24. #[cfg(windows)]
  25. mod draw;
  26. pub mod dxgi;
  27. pub mod fence;
  28. pub mod frame;
  29. #[cfg(windows)]
  30. mod host;
  31. #[cfg(windows)]
  32. mod indirect;
  33. pub mod list;
  34. pub mod object;
  35. pub mod pipeline;
  36. #[cfg(windows)]
  37. mod primitive;
  38. pub mod query;
  39. pub mod queue;
  40. pub mod resource;
  41. pub mod root;
  42. #[cfg(windows)]
  43. mod sampler;
  44. #[cfg(windows)]
  45. pub mod shader_cache;
  46. #[cfg(windows)]
  47. mod shadow;
  48. pub mod signature;
  49. #[cfg(windows)]
  50. mod texture;
  51. #[cfg(windows)]
  52. mod watch;
  53. #[cfg(windows)]
  54. pub use host::on_failure;
  55. #[cfg(windows)]
  56. pub use watch::{title_memory_remapped, writing as kernel_will_write};