Skip to content

Latest commit

 

History

History
87 lines (45 loc) · 2.53 KB

dx-graphics-hlsl-tex2dproj.md

File metadata and controls

87 lines (45 loc) · 2.53 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
tex2Dproj
Samples a 2D texture using a projective divide; the texture coordinate is divided by t.w before the lookup takes place.
c6b79360-3737-4b74-bdf3-6d46323e8e54
tex2Dproj HLSL
apiref
tex2Dproj
NA
reference
05/31/2018

tex2Dproj

Samples a 2D texture using a projective divide; the texture coordinate is divided by t.w before the lookup takes place.

ret tex2Dproj(s, t)

Parameters

Item Description
s
[in] The sampler state.
t
[in] The texture coordinate.

Return Value

The value of the texture data.

Type Description

Name In/Out Template Type Component Type Size
s in object sampler2D 1
t in vector float 4
ret out vector float 4

Minimum Shader Model

This function is supported in the following shader models.

Shader Model Supported
Shader Model 4 yes (pixel shader only)
Shader Model 3 (DirectX HLSL) yes (pixel shader only)
Shader Model 2 (DirectX HLSL) yes (pixel shader only)
Shader Model 1 (DirectX HLSL) no

See also

Intrinsic Functions (DirectX HLSL)