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

22 lines
361 B
GLSL

globallycoherent RWByteAddressBuffer _12 : register(u0);
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;
}