Share via


D3D12_RESOURCE_DESC1 struttura (d3d12.h)

Descrive una risorsa, ad esempio una trama, inclusa un'area mip. Questa struttura viene usata in diversi metodi.

Sintassi

typedef struct D3D12_RESOURCE_DESC1 {
  D3D12_RESOURCE_DIMENSION Dimension;
  UINT64                   Alignment;
  UINT64                   Width;
  UINT                     Height;
  UINT16                   DepthOrArraySize;
  UINT16                   MipLevels;
  DXGI_FORMAT              Format;
  DXGI_SAMPLE_DESC         SampleDesc;
  D3D12_TEXTURE_LAYOUT     Layout;
  D3D12_RESOURCE_FLAGS     Flags;
  D3D12_MIP_REGION         SamplerFeedbackMipRegion;
} D3D12_RESOURCE_DESC1;

Members

Dimension

Un membro di D3D12_RESOURCE_DIMENSION, specificando le dimensioni della risorsa (ad esempio, D3D12_RESOURCE_DIMENSION_TEXTURE1D) o se è un buffer ((D3D12_RESOURCE_DIMENSION_BUFFER).

Alignment

Specifica l'allineamento.

Width

Specifica la larghezza della risorsa.

Height

Specifica l'altezza della risorsa.

DepthOrArraySize

Specifica la profondità della risorsa, se è 3D o la dimensione della matrice se è una matrice di risorse 1D o 2D.

MipLevels

Specifica il numero di livelli MIP.

Format

Specifica un membro di DXGI_FORMAT.

SampleDesc

Specifica una struttura DXGI_SAMPLE_DESC .

Layout

Specifica un membro di D3D12_TEXTURE_LAYOUT.

Flags

Flag bit per bit-OR, come costanti di enumerazione D3D12_RESOURCE_FLAGS .

SamplerFeedbackMipRegion

Struct D3D12_MIP_REGION .

Commenti

Per le osservazioni, vedere D3D12_RESOURCE_DESC.

Requisiti

Requisito Valore
Client minimo supportato Windows 10 Build 20348
Server minimo supportato Windows 10 Build 20348
Intestazione d3d12.h

Vedi anche