There are two overloaded tex1D texture lookup functions:
This function performs a 1D texture lookup.
ret tex1D(s, t) |
---|
Where:
Name | In/Out | Template Type | Component Type | Size |
---|---|---|---|---|
s | in | object | sampler1D | 1 |
t | in | scalar | float | 1 |
ret | out | vector | float | 4 |
This intrinsic function is supported in the following (or above) shader versions:
Vertex Shader | Pixel Shader |
---|---|
n/a | ps_1_1 |
This function performas a 1D texture lookup also, but also uses the partial derivatives to help pick the LOD.
ret tex1D(s, t, ddx, ddy) |
---|
Where:
Name | In/Out | Template Type | Component Type | Size |
---|---|---|---|---|
s | in | object | sampler1D | 1 |
t | in | scalar | float | 1 |
ddx | in | scalar | float | 1 |
ddy | in | scalar | float | 1 |
ret | out | vector | float | 4 |
This intrinsic function is supported in the following (or above) shader versions:
Vertex Shader | Pixel Shader |
---|---|
n/a | ps_2_0 |