Skip to content

Latest commit

 

History

History
113 lines (76 loc) · 3.82 KB

ns-d3d12umddi-d3d12ddiarg_createresource_0088.md

File metadata and controls

113 lines (76 loc) · 3.82 KB
UID tech.root title ms.date targetos description prerelease req.construct-type req.ddi-compliance req.dll req.header req.include-header req.kmdf-ver req.lib req.max-support req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.typenames req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs helpviewer_keywords
NS:d3d12umddi.D3D12DDIARG_CREATERESOURCE_0088
display
D3D12DDIARG_CREATERESOURCE_0088
09/29/2022
Windows
Learn more about the D3D12DDIARG_CREATERESOURCE_0088 structure.
true
structure
d3d12umddi.h
Windows 11 (WDDM 3.0)
D3D12DDIARG_CREATERESOURCE_0088
apiref
HeaderDef
d3d12umddi.h
D3D12DDIARG_CREATERESOURCE_0088
D3D12DDIARG_CREATERESOURCE_0088
d3d12umddi/D3D12DDIARG_CREATERESOURCE_0088
c++
D3D12DDIARG_CREATERESOURCE_0088

-description

The D3D12DDIARG_CREATERESOURCE_0088 structure contains the information needed to create or calculate the size of a resource.

-struct-fields

-field ReuseBufferGPUVA

A 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.

-field ResourceType

A D3D12DDI_RESOURCE_TYPE value that identifies the type of this resource.

-field Width

The width of the resource. This is in texels, if the resource is a texture, or bytes if the resource is a buffer.

-field Height

The height of the resource. This applies to two-dimensional and three-dimensional textures.

-field DepthOrArraySize

The depth, or array size of the resource used when the resource is three-dimensional, or arrayed respectively.

-field MipLevels

The number of mip levels the resource has.

-field Format

Specifies how the resource's data is to be interpreted, using a DXGI_FORMAT enumeration value.

-field SampleDesc

A DXGI_SAMPLE_DESC structure that describes the multi-sampling parameters for the resource.

-field Layout

A D3D12DDI_TEXTURE_LAYOUT value that specifies details related to how the memory which comprises the resource is arranged.

-field Flags

A D3D12DDI_RESOURCE_FLAGS_0003 value with bitwise-OR'd flags that describe the ways the resource is to be used.

-field InitialBarrierLayout

A D3D12DDI_BARRIER_LAYOUT value that specifies the initial layout of the resource.

-field pRowMajorLayout

A 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.

-field SamplerFeedbackMipRegion

A D3D12DDI_MIP_REGION_0075 structure specifying the size of a mip region.

-field NumCastableFormats

The number of elements that pCastableFormats points to.

-field pCastableFormats

Pointer to a contiguous array of DXGI_FORMAT values that this resource can be cast to.

-see-also

PFND3D12DDI_CALCPRIVATEHEAPANDRESOURCESIZES_0088

PFND3D12DDI_CHECKRESOURCEALLOCATIONINFO_0088

PFND3D12DDI_CREATEHEAPANDRESOURCE_0088