diff options
| author | Luxko <liarluxlux@gmail.com> | 2022-06-19 19:06:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-19 19:06:31 +0800 |
| commit | d89c4606bd54f9c72405e22e4e8b0c510747b14f (patch) | |
| tree | c8285be6c2dc453b43f10c0d41c5f414eb5aac51 | |
| parent | 173286de65181ca6c3ce321610ba3076c86a282c (diff) | |
Add missing field for `TEXTURE_COPY_LOCATION`
Add missing anonymous union field for [D3D12_TEXTURE_COPY_LOCATION ](https://docs.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_texture_copy_location):
```C
union {
D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint;
UINT SubresourceIndex;
};
```
| -rw-r--r-- | vendor/directx/d3d12/d3d12.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/directx/d3d12/d3d12.odin b/vendor/directx/d3d12/d3d12.odin index c61b6cfb5..6a7eed22b 100644 --- a/vendor/directx/d3d12/d3d12.odin +++ b/vendor/directx/d3d12/d3d12.odin @@ -1459,6 +1459,10 @@ TEXTURE_COPY_TYPE :: enum i32 { TEXTURE_COPY_LOCATION :: struct { pResource: ^IResource, Type: TEXTURE_COPY_TYPE, + using _: struct #raw_union { + PlacedFootprint: PLACED_SUBRESOURCE_FOOTPRINT, + SubresourceIndex: u32, + }, } RESOLVE_MODE :: enum i32 { |