// d3d12umddi.h
typedef struct D3D12DDICAPS_VIDEO_ENCODER_HEAP_SIZE_DATA_0080_2 {
D3D12DDIARG_CREATE_VIDEO_ENCODER_HEAP_0080_2 HeapDesc;
BOOL IsSupported;
UINT64 MemoryPoolL0Size;
UINT64 MemoryPoolL1Size;
} D3D12DDICAPS_VIDEO_ENCODER_HEAP_SIZE_DATA_0080_2;
View the official Windows Driver Kit DDI referenceNo description available.
The D3D12DDICAPS_VIDEO_ENCODER_HEAP_SIZE_DATA_0080_2 structure is used to retrieve the memory requirements of a video encoder heap.
HeapDesc[in] A D3D12DDIARG_CREATE_VIDEO_ENCODER_HEAP_0080_2 structure that specifies the creation properties for a video encoder heap. The driver should map these creation properties to size and assume the maximum resolution allowed for such a heap.
IsSupported[out] Indicates whether the given feature values are supported.
MemoryPoolL0Size[out] The L0 size of the heap object, in bytes. Memory pool L0 is the memory pool "closest" to the GPU. For UMA adapters, this is the amount of system memory used. For discrete adapters, this is the amount of discrete memory used.
MemoryPoolL1Size[out] The L1 size of the heap object, in bytes. Memory pool L0 is the memory pool "second closest" to the GPU. For UMA adapters, this value is zero. For discrete adapters, this is the amount of system memory used.
The D3D runtime calls PFND3D12DDI_VIDEO_GETCAPS with D3D12DDICAPS_TYPE_VIDEO_0080_ENCODER_HEAP_SIZE specified as the capability type.
See D3D12 video encoding for general information.
D3D12DDIARG_VIDEO_GETCAPS_0020