2018-10-22 07:50:04 +00:00
|
|
|
cbuffer Registers
|
2018-08-06 13:41:10 +00:00
|
|
|
{
|
|
|
|
float registers_foo : packoffset(c0);
|
|
|
|
};
|
|
|
|
|
2018-10-22 07:50:04 +00:00
|
|
|
|
2018-08-06 13:41:10 +00:00
|
|
|
static float FragColor;
|
|
|
|
|
|
|
|
struct SPIRV_Cross_Output
|
|
|
|
{
|
|
|
|
float FragColor : SV_Target0;
|
|
|
|
};
|
|
|
|
|
|
|
|
float add_value(float v, float w)
|
|
|
|
{
|
|
|
|
return v + w;
|
|
|
|
}
|
|
|
|
|
|
|
|
void frag_main()
|
|
|
|
{
|
|
|
|
FragColor = add_value(10.0f, registers_foo);
|
|
|
|
}
|
|
|
|
|
|
|
|
SPIRV_Cross_Output main()
|
|
|
|
{
|
|
|
|
frag_main();
|
|
|
|
SPIRV_Cross_Output stage_output;
|
|
|
|
stage_output.FragColor = FragColor;
|
|
|
|
return stage_output;
|
|
|
|
}
|