Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ID3D12GraphicsCommandList2 bindings #807

Open
wants to merge 2 commits into
base: 0.3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/um/d3d12.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2294,6 +2294,24 @@ interface ID3D12GraphicsCommandList1(ID3D12GraphicsCommandList1Vtbl):
ResolveMode: D3D12_RESOLVE_MODE,
) -> (),
}}
STRUCT!{struct D3D12_WRITEBUFFERIMMEDIATE_PARAMETER {
Dest: D3D12_GPU_VIRTUAL_ADDRESS,
Value: u32,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Value: u32,
Value: UINT32,

}}
ENUM!{enum D3D12_WRITEBUFFERIMMEDIATE_MODE {
D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT = 0,
D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_IN = 0x1,
D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_OUT = 0x2,
}}
RIDL!{#[uuid(0x38c3e585, 0xff17, 0x412c, 0x91, 0x50, 0x4f, 0xc6, 0xf9, 0xd7, 0x2a, 0x28)]
interface ID3D12GraphicsCommandList2(ID3D12GraphicsCommandList2Vtbl):
ID3D12GraphicsCommandList1(ID3D12GraphicsCommandList1Vtbl) {
fn WriteBufferImmediate(
Count: UINT,
pParams: *const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER,
pModes: *const D3D12_WRITEBUFFERIMMEDIATE_MODE,
) -> (),
}}
RIDL!{#[uuid(0x0ec870a6, 0x5d7e, 0x4c22, 0x8c, 0xfc, 0x5b, 0xaa, 0xe0, 0x76, 0x16, 0xed)]
interface ID3D12CommandQueue(ID3D12CommandQueueVtbl): ID3D12Pageable(ID3D12PageableVtbl) {
fn UpdateTileMappings(
Expand Down