FFmpeg
Macros
hwcontext_d3d12va_internal.h File Reference

Go to the source code of this file.

Macros

#define COBJMACROS
 Enable C style interface for D3D12. More...
 
#define DX_CHECK(hr)
 A check macro used by D3D12 functions highly frequently. More...
 
#define D3D12_OBJECT_RELEASE(pInterface)
 A release macro used by D3D12 objects highly frequently. More...
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Enable C style interface for D3D12.

Definition at line 32 of file hwcontext_d3d12va_internal.h.

◆ DX_CHECK

#define DX_CHECK (   hr)
Value:
do { \
if (FAILED(hr)) \
goto fail; \
} while (0)

A check macro used by D3D12 functions highly frequently.

Definition at line 40 of file hwcontext_d3d12va_internal.h.

◆ D3D12_OBJECT_RELEASE

#define D3D12_OBJECT_RELEASE (   pInterface)
Value:
do { \
if (pInterface) { \
IUnknown_Release((IUnknown *)pInterface); \
pInterface = NULL; \
} \
} while (0)

A release macro used by D3D12 objects highly frequently.

Definition at line 51 of file hwcontext_d3d12va_internal.h.

fail
#define fail()
Definition: checkasm.h:193
NULL
#define NULL
Definition: coverity.c:32