HLSL: phase 3b: Texture methods remember and return vector size.
Also makes a (correct) test change for global -> temp vars.
This commit is contained in:
parent
4f2da27aec
commit
8b0227ced9
27 changed files with 800 additions and 541 deletions
24
Test/hlsl.sample.sub-vec4.dx10.frag
Normal file
24
Test/hlsl.sample.sub-vec4.dx10.frag
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
SamplerState g_sSamp : register(s0);
|
||||
|
||||
Texture1D <float> g_tTex1df1;
|
||||
Texture1D <float2> g_tTex1df2;
|
||||
Texture1D <float3> g_tTex1df3;
|
||||
Texture1D <float4> g_tTex1df4;
|
||||
|
||||
struct PS_OUTPUT
|
||||
{
|
||||
float4 Color : SV_Target0;
|
||||
};
|
||||
|
||||
PS_OUTPUT main()
|
||||
{
|
||||
PS_OUTPUT psout;
|
||||
|
||||
float txval10 = g_tTex1df1 . Sample(g_sSamp, 0.1);
|
||||
float2 txval11 = g_tTex1df2 . Sample(g_sSamp, 0.2);
|
||||
float3 txval12 = g_tTex1df3 . Sample(g_sSamp, 0.2);
|
||||
float4 txval13 = g_tTex1df4 . Sample(g_sSamp, 0.2);
|
||||
|
||||
psout.Color = 1.0;
|
||||
return psout;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue