2
0

lib.rs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. #[cfg(windows)]
  34. mod inplace;
  35. pub mod list;
  36. pub mod object;
  37. pub mod pipeline;
  38. #[cfg(windows)]
  39. mod primitive;
  40. pub mod query;
  41. pub mod queue;
  42. pub mod resource;
  43. pub mod root;
  44. #[cfg(windows)]
  45. mod sampler;
  46. #[cfg(windows)]
  47. pub mod shader_cache;
  48. #[cfg(windows)]
  49. mod memory;
  50. #[cfg(windows)]
  51. mod shadow;
  52. pub mod signature;
  53. #[cfg(windows)]
  54. mod texture;
  55. #[cfg(windows)]
  56. mod watch;
  57. #[cfg(windows)]
  58. pub use host::on_failure;
  59. #[cfg(windows)]
  60. pub use inplace::{title_memory_freeing, title_memory_section, title_memory_view};
  61. #[cfg(windows)]
  62. pub use watch::{
  63. title_memory_reading, title_memory_remapped, title_memory_remapping, writing as kernel_will_write,
  64. };