Skip to content

Commit

Permalink
Merge pull request #2938 from moritzfalk/d3d11-annotations
Browse files Browse the repository at this point in the history
Adding IUserDefinedAnnotation to D3D11 for better debugging.
  • Loading branch information
gingerBill authored Feb 24, 2025
2 parents d234538 + 6e49bbb commit e25507c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion vendor/directx/d3d11/d3d11.odin
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ BOOL :: dxgi.BOOL
UINT :: dxgi.UINT
INT :: dxgi.INT

LPCWSTR :: [^]u16

RECT :: dxgi.RECT
SIZE :: dxgi.SIZE

Expand Down Expand Up @@ -3281,7 +3283,19 @@ IVideoContext_VTable :: struct {
VideoProcessorGetStreamRotation: proc "system" (this: ^IVideoContext, pVideoProcessor: ^IVideoProcessor, StreamIndex: u32, pEnable: ^BOOL, pRotation: ^VIDEO_PROCESSOR_ROTATION),
}


IUserDefinedAnnotation_UUID_STRING :: "B2DAAD8B-03D4-4DBF-95EB-32AB4B63D0AB"
IUserDefinedAnnotation_UUID := &IID{0xB2DAAD8B, 0x03D4, 0x4DBF, {0x95, 0xEB, 0x32, 0xAB, 0x4B, 0x63, 0xD0, 0xAB}}
IUserDefinedAnnotation :: struct #raw_union {
#subtype iunknown: IUnknown,
using id3d11userdefinedannotation_vtable: ^IUserDefinedAnnotation_VTable,
}
IUserDefinedAnnotation_VTable :: struct {
using iunknown_vtable : IUnknown_VTable,
BeginEvent: proc "stdcall" (this: ^IUserDefinedAnnotation, Name: LPCWSTR) -> i32,
EndEvent: proc "stdcall" (this: ^IUserDefinedAnnotation) -> i32,
GetStatus: proc "stdcall" (this: ^IUserDefinedAnnotation) -> i32,
SetMarker: proc "stdcall" (this: ^IUserDefinedAnnotation, Name: LPCWSTR),
}

IVideoDevice_UUID_STRING :: "10EC4D5B-975A-4689-B9E4-D0AAC30FE333"
IVideoDevice_UUID := &IID{0x10EC4D5B, 0x975A, 0x4689, {0xB9, 0xE4, 0xD0, 0xAA, 0xC3, 0x0F, 0xE3, 0x33}}
Expand Down

0 comments on commit e25507c

Please sign in to comment.