SPIRV-Cross/reference/shaders-hlsl/frag/readonly-coherent-ssbo.force-uav.frag

22 lines
361 B
GLSL
Raw Normal View History

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;
}