// d3d12umddi.h
typedef struct D3D12DDIARG_CREATERESOURCE_0088 {
D3D12DDIARG_BUFFER_PLACEMENT ReuseBufferGPUVA;
D3D12DDI_RESOURCE_TYPE ResourceType;
UINT64 Width;
UINT Height;
UINT16 DepthOrArraySize;
UINT16 MipLevels;
DXGI_FORMAT Format;
DXGI_SAMPLE_DESC SampleDesc;
D3D12DDI_TEXTURE_LAYOUT Layout;
D3D12DDI_RESOURCE_FLAGS_0003 Flags;
D3D12DDI_BARRIER_LAYOUT InitialBarrierLayout;
const D3D12DDIARG_ROW_MAJOR_RESOURCE_LAYOUT *pRowMajorLayout;
D3D12DDI_MIP_REGION_0075 SamplerFeedbackMipRegion;
UINT32 NumCastableFormats;
const DXGI_FORMAT *pCastableFormats;
} D3D12DDIARG_CREATERESOURCE_0088;
View the official Windows Driver Kit DDI referenceNo description available.
The D3D12DDIARG_CREATERESOURCE_0088 structure contains the information needed to create or calculate the size of a resource.
ReuseBufferGPUVAA D3D12DDIARG_BUFFER_PLACEMENT structure that specifies the GPU-side virtual address that the resource should have, if it does not need a new one assigned.
ResourceTypeA D3D12DDI_RESOURCE_TYPE value that identifies the type of this resource.
WidthThe width of the resource. This is in texels, if the resource is a texture, or bytes if the resource is a buffer.
HeightThe height of the resource. This applies to two-dimensional and three-dimensional textures.
DepthOrArraySizeThe depth, or array size of the resource used when the resource is three-dimensional, or arrayed respectively.
MipLevelsThe number of mip levels the resource has.
FormatSpecifies how the resource's data is to be interpreted, using a DXGI_FORMAT enumeration value.
SampleDescA DXGI_SAMPLE_DESC structure that describes the multi-sampling parameters for the resource.
LayoutA D3D12DDI_TEXTURE_LAYOUT value that specifies details related to how the memory which comprises the resource is arranged.
FlagsA D3D12DDI_RESOURCE_FLAGS_0003 value with bitwise-OR'd flags that describe the ways the resource is to be used.
InitialBarrierLayoutA D3D12DDI_BARRIER_LAYOUT value that specifies the initial layout of the resource.
pRowMajorLayoutA D3D12DDIARG_ROW_MAJOR_RESOURCE_LAYOUT structure that describes the layout of a row-major resource. When Layout is D3D12DDI_TL_ROW_MAJOR and pRowMajorLayout is non-null, then *pRowMajorLayout specifies the layout of the resource.
SamplerFeedbackMipRegionA D3D12DDI_MIP_REGION_0075 structure specifying the size of a mip region.
NumCastableFormatsThe number of elements that pCastableFormats points to.
pCastableFormatsPointer to a contiguous array of DXGI_FORMAT values that this resource can be cast to.
PFND3D12DDI_CALCPRIVATEHEAPANDRESOURCESIZES_0088
PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0088
PFND3D12DDI_CREATEHEAPANDRESOURCE_0088