2017-06-17 08:15:32 +00:00
|
|
|
Texture2D<float4> uTex : register(t0);
|
|
|
|
SamplerState _uTex_sampler : register(s0);
|
2017-01-26 12:22:52 +00:00
|
|
|
|
|
|
|
static float4 FragColor;
|
|
|
|
static float4 vColor;
|
|
|
|
static float2 vTex;
|
|
|
|
|
2017-03-06 15:50:15 +00:00
|
|
|
struct SPIRV_Cross_Input
|
2017-01-26 12:22:52 +00:00
|
|
|
{
|
|
|
|
float4 vColor : TEXCOORD0;
|
|
|
|
float2 vTex : TEXCOORD1;
|
|
|
|
};
|
|
|
|
|
2017-03-06 15:50:15 +00:00
|
|
|
struct SPIRV_Cross_Output
|
2017-01-26 12:22:52 +00:00
|
|
|
{
|
2017-03-07 12:56:03 +00:00
|
|
|
float4 FragColor : SV_Target0;
|
2017-01-26 12:22:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void frag_main()
|
|
|
|
{
|
2017-04-18 13:17:55 +00:00
|
|
|
FragColor = vColor * uTex.Sample(_uTex_sampler, vTex);
|
2017-01-26 12:22:52 +00:00
|
|
|
}
|
|
|
|
|
2017-03-06 15:50:15 +00:00
|
|
|
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
|
2017-01-26 12:22:52 +00:00
|
|
|
{
|
2017-03-06 15:50:15 +00:00
|
|
|
vColor = stage_input.vColor;
|
|
|
|
vTex = stage_input.vTex;
|
2017-01-26 12:22:52 +00:00
|
|
|
frag_main();
|
2017-03-06 15:50:15 +00:00
|
|
|
SPIRV_Cross_Output stage_output;
|
|
|
|
stage_output.FragColor = FragColor;
|
|
|
|
return stage_output;
|
2017-01-26 12:22:52 +00:00
|
|
|
}
|