25namespace xrt::auxiliary::d3d::d3d12 {
38wil::com_ptr<ID3D12Device>
54 ID3D12CommandAllocator &command_allocator,
55 ID3D12Resource &resource,
57 wil::com_ptr<ID3D12CommandList> out_acquire_command_list,
58 wil::com_ptr<ID3D12CommandList> out_release_command_list);
74 ID3D12CommandAllocator &command_allocator,
75 ID3D12Resource &resource_src,
76 ID3D12Resource &resource_dst,
77 D3D12_RESOURCE_STATES src_resource_state,
78 D3D12_RESOURCE_STATES dst_resource_state,
79 wil::com_ptr<ID3D12CommandList> &out_copy_command_list);
89wil::com_ptr<ID3D12Resource>
100wil::com_ptr<ID3D12Fence1>
std::pair< wil::com_ptr< ID3D11Device >, wil::com_ptr< ID3D11DeviceContext > > createDevice(const wil::com_ptr< IDXGIAdapter > &adapter, u_logging_level log_level)
Create a D3D11 Device object.
Definition: d3d_d3d11_helpers.cpp:36
HRESULT createCommandLists(ID3D12Device &device, ID3D12CommandAllocator &command_allocator, ID3D12Resource &resource, enum xrt_swapchain_usage_bits bits, wil::com_ptr< ID3D12CommandList > out_acquire_command_list, wil::com_ptr< ID3D12CommandList > out_release_command_list)
Create command lists for a resource transitioning to/from app control.
Definition: d3d_d3d12_helpers.cpp:40
wil::com_ptr< ID3D12Resource > importImage(ID3D12Device &device, HANDLE h)
Imports an image into D3D12 from a handle.
Definition: d3d_d3d12_helpers.cpp:148
HRESULT createCommandListImageCopy(ID3D12Device &device, ID3D12CommandAllocator &command_allocator, ID3D12Resource &resource_src, ID3D12Resource &resource_dst, D3D12_RESOURCE_STATES src_resource_state, D3D12_RESOURCE_STATES dst_resource_state, wil::com_ptr< ID3D12CommandList > &out_copy_command_list)
Create a command list for image resource copying.
Definition: d3d_d3d12_helpers.cpp:83
wil::com_ptr< ID3D12Fence1 > importFence(ID3D12Device &device, HANDLE h)
Imports a fence into D3D12 from a handle.
Definition: d3d_d3d12_helpers.cpp:161
u_logging_level
Logging level enum.
Definition: u_logging.h:40
@ U_LOGGING_INFO
Info messages: not very verbose, not indicating a problem.
Definition: u_logging.h:43
xrt_swapchain_usage_bits
Usage of the swapchain images.
Definition: xrt_compositor.h:506
Basic logging functionality.
Header declaring XRT graphics interfaces.
Common defines and enums for XRT.