enumerazione D3DXPARAMETER_TYPE

Descrive i dati contenuti nell'enumerazione.

Sintassi

typedef enum D3DXPARAMETER_TYPE { 
  D3DXPT_VOID,
  D3DXPT_BOOL,
  D3DXPT_INT,
  D3DXPT_FLOAT,
  D3DXPT_STRING,
  D3DXPT_TEXTURE,
  D3DXPT_TEXTURE1D,
  D3DXPT_TEXTURE2D,
  D3DXPT_TEXTURE3D,
  D3DXPT_TEXTURECUBE,
  D3DXPT_SAMPLER,
  D3DXPT_SAMPLER1D,
  D3DXPT_SAMPLER2D,
  D3DXPT_SAMPLER3D,
  D3DXPT_SAMPLERCUBE,
  D3DXPT_PIXELSHADER,
  D3DXPT_VERTEXSHADER,
  D3DXPT_PIXELFRAGMENT,
  D3DXPT_VERTEXFRAGMENT,
  D3DXPT_UNSUPPORTED,
  D3DXPT_FORCE_DWORD     = 0x7fffffff
} D3DXPARAMETER_TYPE, *LPD3DXPARAMETER_TYPE;

Costanti

D3DXPT_VOID

Il parametro è un puntatore void.

D3DXPT_BOOL

Il parametro è un valore booleano. Qualsiasi valore non zero passato in ID3DXConstantTable::SetBool, ID3DXConstantTable::SetBoolArray, ID3DXConstantTable::SetValue, ID3DXConstantTable::SetVector o ID3DXConstantTable::SetVectorArray verrà mappato a 1 (TRUE) prima di essere scritto nella tabella costante; in caso contrario, il valore verrà impostato su 0 nella tabella costante.

D3DXPT_INT

Il parametro è un intero. Tutti i valori a virgola mobile passati in ID3DXConstantTable::SetValue, ID3DXConstantTable::SetVector o ID3DXConstantTable: :SetVectorArray verranno arrotondati (a zero cifre decimali) prima di essere scritti nella tabella costante.

D3DXPT_FLOAT

Il parametro è un numero a virgola mobile.

D3DXPT_STRING

Il parametro è una stringa.

D3DXPT_TEXTURE

Il parametro è una trama.

D3DXPT_TEXTURE1D

Il parametro è una trama 1D.

D3DXPT_TEXTURE2D

Il parametro è una trama 2D.

D3DXPT_TEXTURE3D

Il parametro è una trama 3D.

D3DXPT_TEXTURECUBE

Il parametro è una trama del cubo.

D3DXPT_SAMPLER

Il parametro è un sampler.

D3DXPT_SAMPLER1D

Il parametro è un sampler 1D.

D3DXPT_SAMPLER2D

Il parametro è un sampler 2D.

D3DXPT_SAMPLER3D

Il parametro è un sampler 3D.

D3DXPT_SAMPLERCUBE

Il parametro è un sampler del cubo.

D3DXPT_PIXELSHADER

Il parametro è un pixel shader.

D3DXPT_VERTEXSHADER

Il parametro è un vertex shader.

D3DXPT_PIXELFRAGMENT

Il parametro è un frammento di pixel shader.

D3DXPT_VERTEXFRAGMENT

Il parametro è un frammento di vertex shader.

D3DXPT_UNSUPPORTED

Il parametro non è supportato.

D3DXPT_FORCE_DWORD

Forza questa enumerazione per la compilazione in 32 bit di dimensioni. Senza questo valore, alcuni compilatori consentono la compilazione di questa enumerazione in una dimensione diversa da 32 bit. Questo valore non viene utilizzato.

Requisiti

Requisito Valore
Intestazione
D3dx9shader.h

Vedi anche

Enumerazione D3DX

D3DXSHADER_TYPEINFO

D3DXCONSTANT_DESC