Browse Source

Correct D3D packages

gingerBill 3 years ago
parent
commit
746d5fc322
2 changed files with 5 additions and 5 deletions
  1. 1 1
      vendor/directx/d3d11/d3d11.odin
  2. 4 4
      vendor/directx/d3d_compiler/d3d_compiler.odin

+ 1 - 1
vendor/directx/d3d11/d3d11.odin

@@ -2361,7 +2361,7 @@ IDeviceContext_VTable :: struct {
 	ClearRenderTargetView:                     proc "stdcall" (this: ^IDeviceContext, pRenderTargetView: ^IRenderTargetView, ColorRGBA: ^[4]f32),
 	ClearUnorderedAccessViewUint:              proc "stdcall" (this: ^IDeviceContext, pUnorderedAccessView: ^IUnorderedAccessView, Values: ^[4]u32),
 	ClearUnorderedAccessViewFloat:             proc "stdcall" (this: ^IDeviceContext, pUnorderedAccessView: ^IUnorderedAccessView, Values: ^[4]f32),
-	ClearDepthStencilView:                     proc "stdcall" (this: ^IDeviceContext, pDepthStencilView: ^IDepthStencilView, ClearFlags: u32, Depth: f32, Stencil: u8),
+	ClearDepthStencilView:                     proc "stdcall" (this: ^IDeviceContext, pDepthStencilView: ^IDepthStencilView, ClearFlags: CLEAR_FLAG, Depth: f32, Stencil: u8),
 	GenerateMips:                              proc "stdcall" (this: ^IDeviceContext, pShaderResourceView: ^IShaderResourceView),
 	SetResourceMinLOD:                         proc "stdcall" (this: ^IDeviceContext, pResource: ^IResource, MinLOD: f32),
 	GetResourceMinLOD:                         proc "stdcall" (this: ^IDeviceContext, pResource: ^IResource) -> f32,

+ 4 - 4
vendor/directx/d3d_compiler/d3d_compiler.odin

@@ -111,7 +111,7 @@ SHADER_MACRO :: struct {
 
 ID3D10Blob_UUID_STRING :: "8BA5FB08-5195-40E2-AC58-0D989C3A0102"
 ID3D10Blob_UUID := &IID{0x8BA5FB08, 0x5195, 0x40E2, {0xAC, 0x58, 0x0D, 0x98, 0x9C, 0x3A, 0x01, 0x02}}
-ID3D10Blob :: struct {
+ID3D10Blob :: struct #raw_union {
 	#subtype iunknown: IUnknown,
 	using id3d10blob_vtable: ^ID3D10Blob_VTable,
 }
@@ -143,7 +143,7 @@ ID3DInclude_VTable :: struct {
 }
 
 
-ID3D11Module :: struct {
+ID3D11Module :: struct #raw_union {
 	#subtype iunknown: IUnknown,
 	using id3d11module_vtable: ^ID3D11Module_VTable,
 }
@@ -153,7 +153,7 @@ ID3D11Module_VTable :: struct {
 }
 
 
-ID3D11ModuleInstance :: struct {
+ID3D11ModuleInstance :: struct #raw_union {
 	#subtype iunknown: IUnknown,
 	using id3d11moduleinstance_vtable: ^ID3D11ModuleInstance_VTable,
 }
@@ -172,7 +172,7 @@ ID3D11ModuleInstance_VTable :: struct {
 }
 
 
-ID3D11Linker :: struct {
+ID3D11Linker :: struct #raw_union {
 	#subtype iunknown: IUnknown,
 	using id3d11linker_vtable: ^ID3D11Linker_VTable,
 }