Bewerken

Delen via


D3D12DDIARG_CREATERESOURCE_0073 structure (d3d12umddi.h)

The D3D12DDIARG_CREATERESOURCE_0073 structure contains information needed to describe the creation or size calculation of a resource.

Syntax

typedef struct D3D12DDIARG_CREATERESOURCE_0073 {
  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_RESOURCE_STATES                    InitialResourceState;
  const D3D12DDIARG_ROW_MAJOR_RESOURCE_LAYOUT *pRowMajorLayout;
  D3D12DDI_SAMPLER_FEEDBACK_DESC_0073         SamplerFeedbackDesc;
} D3D12DDIARG_CREATERESOURCE_0073;

Members

ReuseBufferGPUVA

The GPU virtual address that this resource should have, if it does not need a new one assigned.

ResourceType

A D3D12DDI_RESOURCE_TYPE that specifies the type of resource.

Width

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

Height

The height of the resource, in texels. This member applies to two-dimensional and three-dimensional textures only.

DepthOrArraySize

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

MipLevels

The number of mip levels the resource has.

Format

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

SampleDesc

A DXGI_SAMPLE_DESC structure that specifies the sample count and quality level of this resource, as it relates to multisampling.

Layout

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

Flags

A bitwise-OR-ed value of D3D12_RESOURCE_FLAGS flags which describe the ways the resource is to be used.

InitialResourceState

A bitwise-OR-ed value of D3D12_RESOURCE_STATES values that describe the initial resource state.

pRowMajorLayout

When Layout is D3D12DDI_TL_ROW_MAJOR and pRowMajorLayout is non-null, then *pRowMajorLayout points to a D3D12DDIARG_ROW_MAJOR_RESOURCE_LAYOUT structure that specifies the layout of the resource.

SamplerFeedbackDesc

Deprecated. Use D3D12DDIARG_CREATERESOURCE_0075 for sampler feedback.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Header d3d12umddi.h

See also

D3D12DDIARG_CREATERESOURCE_0088