Skip to content

Commit

Permalink
Change D3D12_BARRIER_SYNC/D3D12_BARRIER_ACCESS to uint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Apr 1, 2023
1 parent 8f8fd3d commit 628ef46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .metadata/emitter.settings.rsp
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
--memberRemap
^ID[2|3]D\w+$=[Agile]
--with-type
D3D12_BARRIER_SYNC=uint
--with-type
D3D12_BARRIER_ACCESS=uint
6 changes: 2 additions & 4 deletions include/directx/d3d12.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5432,9 +5432,7 @@ typedef enum D3D12_BARRIER_SYNC
D3D12_BARRIER_SYNC_VIDEO_ENCODE = 0x400000,
D3D12_BARRIER_SYNC_BUILD_RAYTRACING_ACCELERATION_STRUCTURE = 0x800000,
D3D12_BARRIER_SYNC_COPY_RAYTRACING_ACCELERATION_STRUCTURE = 0x1000000,
// error CS0031: Constant value '-2147483648' cannot be converted to a 'uint'
// D3D12_BARRIER_SYNC_SPLIT = unchecked((int)(0x80000000)),
// D3D12_BARRIER_SYNC_SPLIT = 0x80000000,
D3D12_BARRIER_SYNC_SPLIT = 0x80000000,
} D3D12_BARRIER_SYNC;
cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_SYNC );" )

Expand Down Expand Up @@ -5465,7 +5463,7 @@ typedef enum D3D12_BARRIER_ACCESS
D3D12_BARRIER_ACCESS_VIDEO_PROCESS_WRITE = 0x100000,
D3D12_BARRIER_ACCESS_VIDEO_ENCODE_READ = 0x200000,
D3D12_BARRIER_ACCESS_VIDEO_ENCODE_WRITE = 0x400000,
// D3D12_BARRIER_ACCESS_NO_ACCESS = 0x80000000,
D3D12_BARRIER_ACCESS_NO_ACCESS = 0x80000000,
} D3D12_BARRIER_ACCESS;
cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_ACCESS );" )

Expand Down

0 comments on commit 628ef46

Please sign in to comment.