Added usage hint for --auto-sampled-textures, added test cases
This commit is contained in:
parent
25dd807c3a
commit
e50b0a857c
6 changed files with 167 additions and 0 deletions
21
Test/hlsl.autosampledtextures.frag
Normal file
21
Test/hlsl.autosampledtextures.frag
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
Texture2D g_tColor;
|
||||
|
||||
SamplerState g_sAniso;
|
||||
|
||||
struct PS_INPUT
|
||||
{
|
||||
float2 vTextureCoords : TEXCOORD2 ;
|
||||
} ;
|
||||
|
||||
struct PS_OUTPUT
|
||||
{
|
||||
float4 vColor : SV_Target0 ;
|
||||
} ;
|
||||
|
||||
PS_OUTPUT MainPs ( PS_INPUT i )
|
||||
{
|
||||
PS_OUTPUT ps_output ;
|
||||
|
||||
ps_output . vColor = g_tColor . Sample ( g_sAniso , i . vTextureCoords . xy ) ;
|
||||
return ps_output ;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue