Skip to content

Latest commit

 

History

History
86 lines (46 loc) · 1.69 KB

dcl-output-odepth.md

File metadata and controls

86 lines (46 loc) · 1.69 KB
title description ms.assetid ms.topic ms.date topic_type api_name api_type api_location
dcl_output oDepth (sm4 - asm)
dcl\_output oDepth (sm4 - asm)
7ee3026d-507f-4aa8-8335-d92c5f649f46
reference
05/31/2018
apiref

dcl_output oDepth (sm4 - asm)

Declares that a pixel shader will use the output-depth register.

dcl_output oDepth

 

The value in the output-depth register is used during a depth comparison (if depth compare is enabled).

This instruction applies to the following shader stages:

Vertex Shader Geometry Shader Pixel Shader
x

 

This instruction is included to aid in debugging a shader in assembly; you cannot author a shader in assembly language using Shader Model 4.

Example

Here are some examples.

dcl_output oDepth

Minimum Shader Model

This function is supported in the following shader models.

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

 

Related topics

Shader Model 4 Assembly (DirectX HLSL)