Skip to content

Latest commit

 

History

History
229 lines (142 loc) · 5.8 KB

ns-d3d12shader-d3d12_shader_desc.md

File metadata and controls

229 lines (142 loc) · 5.8 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:d3d12shader._D3D12_SHADER_DESC
D3D12_SHADER_DESC (d3d12shader.h)
Describes a shader. (D3D12_SHADER_DESC)
D3D12_SHADER_DESC
D3D12_SHADER_DESC structure
d3d12shader/D3D12_SHADER_DESC
direct3d12.d3d12_shader_desc
direct3d12\d3d12_shader_desc.htm
direct3d12
FE989434-B1B6-48F3-8F95-64B1E7C988F5
12/05/2018
D3D12_SHADER_DESC, D3D12_SHADER_DESC structure, d3d12shader/D3D12_SHADER_DESC, direct3d12.d3d12_shader_desc
d3d12shader.h
Windows
Windows
D3D12_SHADER_DESC
19H1
_D3D12_SHADER_DESC
d3d12shader/_D3D12_SHADER_DESC
D3D12_SHADER_DESC
d3d12shader/D3D12_SHADER_DESC
c++
APIRef
kbSyntax
HeaderDef
d3d12shader.h
D3D12_SHADER_DESC

D3D12_SHADER_DESC structure

-description

Describes a shader.

-struct-fields

-field Version

The Shader version, as an encoded UINT that corresponds to a shader model, such as "ps_5_0". Version describes the program type, a major version number, and a minor version number. The program type is a D3D12_SHADER_VERSION_TYPE enumeration constant. Version is decoded in the following way:

  • Program type = (Version & 0xFFFF0000) >> 16
  • Major version = (Version & 0x000000F0) >> 4
  • Minor version = (Version & 0x0000000F)

-field Creator

The name of the originator of the shader.

-field Flags

Shader compilation/parse flags.

-field ConstantBuffers

The number of shader-constant buffers.

-field BoundResources

The number of resource (textures and buffers) bound to a shader.

-field InputParameters

The number of parameters in the input signature.

-field OutputParameters

The number of parameters in the output signature.

-field InstructionCount

The number of intermediate-language instructions in the compiled shader.

-field TempRegisterCount

The number of temporary registers in the compiled shader.

-field TempArrayCount

Number of temporary arrays used.

-field DefCount

Number of constant defines.

-field DclCount

Number of declarations (input + output).

-field TextureNormalInstructions

Number of non-categorized texture instructions.

-field TextureLoadInstructions

Number of texture load instructions

-field TextureCompInstructions

Number of texture comparison instructions

-field TextureBiasInstructions

Number of texture bias instructions

-field TextureGradientInstructions

Number of texture gradient instructions.

-field FloatInstructionCount

Number of floating point arithmetic instructions used.

-field IntInstructionCount

Number of signed integer arithmetic instructions used.

-field UintInstructionCount

Number of unsigned integer arithmetic instructions used.

-field StaticFlowControlCount

Number of static flow control instructions used.

-field DynamicFlowControlCount

Number of dynamic flow control instructions used.

-field MacroInstructionCount

Number of macro instructions used.

-field ArrayInstructionCount

Number of array instructions used.

-field CutInstructionCount

Number of cut instructions used.

-field EmitInstructionCount

Number of emit instructions used.

-field GSOutputTopology

The D3D_PRIMITIVE_TOPOLOGY-typed value that represents the geometry shader output topology.

-field GSMaxOutputVertexCount

Geometry shader maximum output vertex count.

-field InputPrimitive

The D3D_PRIMITIVE-typed value that represents the input primitive for a geometry shader or hull shader.

-field PatchConstantParameters

Number of parameters in the patch-constant signature.

-field cGSInstanceCount

Number of geometry shader instances.

-field cControlPoints

Number of control points in the hull shader and domain shader.

-field HSOutputPrimitive

The D3D_TESSELLATOR_OUTPUT_PRIMITIVE-typed value that represents the tessellator output-primitive type.

-field HSPartitioning

The D3D_TESSELLATOR_PARTITIONING-typed value that represents the tessellator partitioning mode.

-field TessellatorDomain

The D3D_TESSELLATOR_DOMAIN-typed value that represents the tessellator domain.

-field cBarrierInstructions

Number of barrier instructions in a compute shader.

-field cInterlockedInstructions

Number of interlocked instructions in a compute shader.

-field cTextureStoreInstructions

Number of texture writes in a compute shader.

-remarks

A shader is written in HLSL and compiled into an intermediate language by the HLSL compiler. The shader description returns information about the compiled shader. To get a shader description, call ID3D12ShaderReflection::GetDesc.

-see-also

Shader Structures