* Update SPIRV libraries - Update `spirv-cross` - Update `spirv-tools` - Update `glslang` `spirv-tools` contains a fix for an issue we reported (unnecessary promotions to highp in certain expressions). * Add SPIRV-Tools dependency to matinfo
14 lines
330 B
GLSL
14 lines
330 B
GLSL
#define DEFINE_TEXTURE(name) Texture2D name; SamplerState name##_ss;
|
|
#define SAMPLE_TEXTURE(name, uv) name.Sample(name##_ss, (uv).xy)
|
|
|
|
#define test_texture2 test_texture
|
|
|
|
DEFINE_TEXTURE(test_texture)
|
|
|
|
float4 main(float4 input : TEXCOORD0) : SV_TARGET
|
|
{
|
|
float4 tex = SAMPLE_TEXTURE(test_texture2, input.xy);
|
|
return tex;
|
|
}
|
|
|