Skip to content

Latest commit

 

History

History
122 lines (77 loc) · 2.51 KB

d3dresourcetype.md

File metadata and controls

122 lines (77 loc) · 2.51 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
Defines resource types.
6b360fb1-4a5a-47a2-bef9-d8234770bf0c
D3DRESOURCETYPE enumeration (D3D9Types.h)
reference
05/31/2018
APIRef
kbSyntax
D3DRESOURCETYPE
HeaderDef
D3D9Types.h

D3DRESOURCETYPE enumeration

Defines resource types.

Syntax

typedef enum D3DRESOURCETYPE { 
  D3DRTYPE_SURFACE        = 1,
  D3DRTYPE_VOLUME         = 2,
  D3DRTYPE_TEXTURE        = 3,
  D3DRTYPE_VOLUMETEXTURE  = 4,
  D3DRTYPE_CUBETEXTURE    = 5,
  D3DRTYPE_VERTEXBUFFER   = 6,
  D3DRTYPE_INDEXBUFFER    = 7,
  D3DRTYPE_FORCE_DWORD    = 0x7fffffff
} D3DRESOURCETYPE, *LPD3DRESOURCETYPE;

Constants

D3DRTYPE_SURFACE

Surface resource.

D3DRTYPE_VOLUME

Volume resource.

D3DRTYPE_TEXTURE

Texture resource.

D3DRTYPE_VOLUMETEXTURE

Volume texture resource.

D3DRTYPE_CUBETEXTURE

Cube texture resource.

D3DRTYPE_VERTEXBUFFER

Vertex buffer resource.

D3DRTYPE_INDEXBUFFER

Index buffer resource.

D3DRTYPE_FORCE_DWORD

Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.

Requirements

Requirement Value
Header
D3D9Types.h

See also

Direct3D Enumerations

IDirect3DResource9::GetType