struktur D3D10_SHADER_DESC (d3d10shader.h)

Menjelaskan shader.

Sintaks

typedef struct _D3D10_SHADER_DESC {
  UINT                     Version;
  LPCSTR                   Creator;
  UINT                     Flags;
  UINT                     ConstantBuffers;
  UINT                     BoundResources;
  UINT                     InputParameters;
  UINT                     OutputParameters;
  UINT                     InstructionCount;
  UINT                     TempRegisterCount;
  UINT                     TempArrayCount;
  UINT                     DefCount;
  UINT                     DclCount;
  UINT                     TextureNormalInstructions;
  UINT                     TextureLoadInstructions;
  UINT                     TextureCompInstructions;
  UINT                     TextureBiasInstructions;
  UINT                     TextureGradientInstructions;
  UINT                     FloatInstructionCount;
  UINT                     IntInstructionCount;
  UINT                     UintInstructionCount;
  UINT                     StaticFlowControlCount;
  UINT                     DynamicFlowControlCount;
  UINT                     MacroInstructionCount;
  UINT                     ArrayInstructionCount;
  UINT                     CutInstructionCount;
  UINT                     EmitInstructionCount;
  D3D10_PRIMITIVE_TOPOLOGY GSOutputTopology;
  UINT                     GSMaxOutputVertexCount;
} D3D10_SHADER_DESC;

Anggota

Version

Jenis: UINT

Versi shader.

Creator

Jenis: LPCSTR

Nama penciut shader.

Flags

Jenis: UINT

Bendera kompilasi/penguraian shader.

ConstantBuffers

Jenis: UINT

Jumlah buffer shader-constant.

BoundResources

Jenis: UINT

Jumlah sumber daya (tekstur dan buffer) yang terikat ke shader.

InputParameters

Jenis: UINT

Jumlah parameter dalam tanda tangan input.

OutputParameters

Jenis: UINT

Jumlah parameter dalam tanda tangan output.

InstructionCount

Jenis: UINT

Jumlah instruksi bahasa perantara dalam shader yang dikompilasi.

TempRegisterCount

Jenis: UINT

Jumlah pendaftaran sementara dalam shader yang dikompilasi.

TempArrayCount

Jenis: UINT

Jumlah array sementara yang digunakan.

DefCount

Jenis: UINT

Jumlah konstanta yang ditentukan.

DclCount

Jenis: UINT

Jumlah deklarasi (input + output).

TextureNormalInstructions

Jenis: UINT

Jumlah instruksi tekstur yang tidak dikategorikan.

TextureLoadInstructions

Jenis: UINT

Jumlah instruksi pemuatan tekstur

TextureCompInstructions

Jenis: UINT

Jumlah instruksi perbandingan tekstur

TextureBiasInstructions

Jenis: UINT

Jumlah instruksi bias tekstur

TextureGradientInstructions

Jenis: UINT

Jumlah instruksi gradien tekstur.

FloatInstructionCount

Jenis: UINT

Jumlah instruksi aritmatika titik mengambang yang digunakan.

IntInstructionCount

Jenis: UINT

Jumlah instruksi aritmatika bilangan bulat yang ditandatangani yang digunakan.

UintInstructionCount

Jenis: UINT

Jumlah instruksi aritmatika bilangan bulat yang tidak ditandatangani yang digunakan.

StaticFlowControlCount

Jenis: UINT

Jumlah instruksi kontrol alur statis yang digunakan.

DynamicFlowControlCount

Jenis: UINT

Jumlah instruksi kontrol alur dinamis yang digunakan.

MacroInstructionCount

Jenis: UINT

Jumlah instruksi makro yang digunakan.

ArrayInstructionCount

Jenis: UINT

Jumlah instruksi array yang digunakan.

CutInstructionCount

Jenis: UINT

Jumlah instruksi potong yang digunakan.

EmitInstructionCount

Jenis: UINT

Jumlah instruksi pemancar yang digunakan.

GSOutputTopology

Jenis: D3D10_PRIMITIVE_TOPOLOGY

Topologi output shader geometri.

GSMaxOutputVertexCount

Jenis: UINT

Jumlah vertex output maksimum shader geometri.

Keterangan

Shader ditulis dalam HLSL dan dikompilasi ke dalam bahasa perantara oleh kompilator HLSL. Deskripsi shader mengembalikan informasi tentang shader yang dikompilasi. Dapatkan deskripsi shader dengan memanggil ID3D10ShaderReflection::GetDesc.

Persyaratan

Persyaratan Nilai
Header d3d10shader.h

Lihat juga

Struktur Shader