// d3d12umddi.h
typedef struct D3D12DDI_VIDEO_DECODER_HEAP_SIZE_DATA_0072 {
UINT NodeMask;
D3D12DDI_VIDEO_DECODE_CONFIGURATION_0020 Configuration;
UINT DecodeWidth;
UINT DecodeHeight;
DXGI_FORMAT Format;
DXGI_RATIONAL FrameRate;
UINT BitRate;
UINT MaxDecodePictureBufferCount;
BOOL Protected;
UINT64 MemoryPoolL0Size;
UINT64 MemoryPoolL1Size;
} D3D12DDI_VIDEO_DECODER_HEAP_SIZE_DATA_0072;
View the official Windows Driver Kit DDI referenceNo description available.
Retrieves the memory allocation size of a video decoder heap created with the given properties.
NodeMaskFor a single GPU operation, set this to zero. If there are multiple GPU nodes, set a bit to identify the node (the device's physical adapter) to which the command queue applies. Each bit in the mask corresponds to a single node. Only 1 bit may be set.
ConfigurationA D3D12DDI_VIDEO_DECODE_CONFIGURATION structure with the decode profile and bitstream encryption.
DecodeWidthThe decode width of the bitstream to be decoded.
DecodeHeightThe decode height of the bitstream to be decoded.
FormatThe resource data format.
FrameRateThe frame rate of the input video stream.
BitRateThe bits per second data compression rate for the compressed video stream.
MaxDecodePictureBufferCountThe maximum number of decode picture buffers that this stream can have.
ProtectedIf TRUE, the decoder is created with a protected resource session and used with protected resources.
MemoryPoolL0SizeThe L0 size of the heap object. Memory Pool L0 is the memory pool “closest” to the GPU. In the case of UMA adapters, this is the amount of system memory used. For discrete adapters, this is the amount of discrete memory used.
MemoryPoolL1SizeThe L1 size of the heap object. Memory Pool L1 is the memory pool “second closest” to the GPU. In the case of UMA adapters, this value is zero. In the case of discrete adapters, this is the amount of system memory used.
This structure is for the D3D12DDICAPS_TYPE_VIDEO_0032_DECODER_HEAP_SIZE capability check in D3D12DDICAPS_TYPE_VIDEO_0020.
See the D3D Video Protected Resource Support Specification for more information.
D3D12DDI_VIDEO_DECODE_CONFIGURATION