Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


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

ret texCUBEproj(s, t)





[in] The sampler state.


[in] The texture coordinate.


Return Value

The value of the texture data.

Type Description

NameIn/Out Template Type Component Type Size
sinobject samplerCUBE 1
tinvector float 4
retoutvector float 4


Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
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)



© 2017 Microsoft