dcl_output oMask (sm5 - asm)

Declare an output register to be written by the shader.

dcl_output o#[.mask]

 

ItemDescription

o

[in] The output register.

 

Remarks


Example:
                dcl_output o[3].xyz


Restrictions

  • The component mask can be any subset of [xyzw]. However, leaving gaps between components wastes space.
  • It is legal to declare a superset of the component mask declared for input by the next stage. However mutually exclusive masks are not allowed. The vertex shader outputting o3.xy, means the pixel shader inputting v3.z is invalid, but inputting v3.x or v3.y or v3.xy is valid.

This instruction applies to the following shader stages:

VertexHullDomainGeometryPixelCompute
XX XXX

 

Minimum Shader Model

This instruction is supported in the following shader models:

Shader ModelSupported
Shader Model 5 yes
Shader Model 4.1 no
Shader Model 4 no
Shader Model 3 (DirectX HLSL) no
Shader Model 2 (DirectX HLSL) no
Shader Model 1 (DirectX HLSL) no

 

Related topics

Shader Model 5 Assembly (DirectX HLSL)

 

 

Show: