abs
all
any
cos
ddx
ddy
dot
dst
exp
fma
lit
log
mad
max
min
mul
pow
rcp
sin
tan
Expand Minimize
2 out of 8 rated this helpful - Rate this topic

texCUBE

Samples a cube texture.

ret texCUBE(s, t)

 

Parameters

ItemDescription

s

[in] The sampler state.

t

[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 3
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) yes (pixel shader only)

 

See also

Intrinsic Functions (DirectX HLSL)

 

 

Send comments about this topic to Microsoft

Build date: 3/5/2013

Community Additions

ADD
© 2013 Microsoft. All rights reserved.