Skip to content

Latest commit

 

History

History
87 lines (45 loc) · 2.98 KB

dx-graphics-hlsl-tex1d.md

File metadata and controls

87 lines (45 loc) · 2.98 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
tex1D (HLSL reference)
Samples a 1D texture.
587be0fd-af12-4bf0-862b-84988435e90e
tex1D HLSL
apiref
tex1D
NA
reference
05/31/2018

tex1D (HLSL reference)

Samples a 1D texture.

ret tex1D(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 sampler1D 1
t in scalar float 1
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), but you must use the legacy compile option when compiling.
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)