SPIRV-Cross/reference/shaders-hlsl/frag/readonly-coherent-ssbo.frag
2020-03-05 10:37:36 +01:00

22 lines
342 B
GLSL

ByteAddressBuffer _12 : register(t0);
static float4 FragColor;
struct SPIRV_Cross_Output
{
float4 FragColor : SV_Target0;
};
void frag_main()
{
FragColor = asfloat(_12.Load4(0));
}
SPIRV_Cross_Output main()
{
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.FragColor = FragColor;
return stage_output;
}