struktur D3D11_SHADER_DESC (d3d11shader.h)
Menjelaskan shader.
Sintaks
typedef struct _D3D11_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;
D3D_PRIMITIVE_TOPOLOGY GSOutputTopology;
UINT GSMaxOutputVertexCount;
D3D_PRIMITIVE InputPrimitive;
UINT PatchConstantParameters;
UINT cGSInstanceCount;
UINT cControlPoints;
D3D_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive;
D3D_TESSELLATOR_PARTITIONING HSPartitioning;
D3D_TESSELLATOR_DOMAIN TessellatorDomain;
UINT cBarrierInstructions;
UINT cInterlockedInstructions;
UINT cTextureStoreInstructions;
} D3D11_SHADER_DESC;
Anggota
Version
Jenis: UINT
Versi shader.
Creator
Jenis: LPCSTR
Nama penentu 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 register sementara dalam shader yang dikompilasi.
TempArrayCount
Jenis: UINT
Jumlah array sementara yang digunakan.
DefCount
Jenis: UINT
Jumlah definisi konstanta.
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 aliran 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 memancarkan yang digunakan.
GSOutputTopology
Jenis: D3D_PRIMITIVE_TOPOLOGY
Nilai yang diketik D3D_PRIMITIVE_TOPOLOGY yang mewakili topologi output shader geometri.
GSMaxOutputVertexCount
Jenis: UINT
Geometri memecah jumlah puncak output maksimum.
InputPrimitive
Jenis: D3D_PRIMITIVE
Nilai yang diketik D3D_PRIMITIVE yang mewakili primitif input untuk shader geometri atau shader lambung.
PatchConstantParameters
Jenis: UINT
Jumlah parameter dalam tanda tangan konstanta patch.
cGSInstanceCount
Jenis: UINT
Jumlah instans shader geometri.
cControlPoints
Jenis: UINT
Jumlah titik kontrol dalam shader lambung dan shader domain.
HSOutputPrimitive
Jenis: D3D_TESSELLATOR_OUTPUT_PRIMITIVE
Nilai D3D_TESSELLATOR_OUTPUT_PRIMITIVE-typed yang mewakili jenis output-primitif tessellator.
HSPartitioning
Jenis: D3D_TESSELLATOR_PARTITIONING
Nilai D3D_TESSELLATOR_PARTITIONING-typed yang mewakili mode partisi tessellator.
TessellatorDomain
Jenis: D3D_TESSELLATOR_DOMAIN
Nilai D3D_TESSELLATOR_DOMAIN-typed yang mewakili domain tessellator.
cBarrierInstructions
Jenis: UINT
Jumlah instruksi penghambat dalam shader komputasi.
cInterlockedInstructions
Jenis: UINT
Jumlah instruksi yang saling terkait dalam shader komputasi.
cTextureStoreInstructions
Jenis: UINT
Jumlah penulisan tekstur dalam shader komputasi.
Keterangan
Shader ditulis dalam HLSL dan dikompilasi ke dalam bahasa perantara oleh pengkompilasi HLSL. Deskripsi shader mengembalikan informasi tentang shader yang dikompilasi. Dapatkan deskripsi shader dengan memanggil ID3D11ShaderReflection::GetDesc.
Persyaratan
Header | d3d11shader.h |
Lihat juga
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk