| 1 |
Buffer<float4> uFloatSampler : register(t1); |
| 2 |
Buffer<int4> uIntSampler : register(t2); |
| 3 |
Buffer<uint4> uUintSampler : register(t3); |
| 4 |
|
| 5 |
static float4 gl_Position; |
| 6 |
struct SPIRV_Cross_Output |
| 7 |
{ |
| 8 |
float4 gl_Position : SV_Position; |
| 9 |
}; |
| 10 |
|
| 11 |
float4 sample_from_function(Buffer<float4> s0, Buffer<int4> s1, Buffer<uint4> s2) |
| 12 |
{ |
| 13 |
return (s0.Load(20) + asfloat(s1.Load(40))) + asfloat(s2.Load(60)); |
| 14 |
} |
| 15 |
|
| 16 |
void vert_main() |
| 17 |
{ |
| 18 |
gl_Position = sample_from_function(uFloatSampler, uIntSampler, uUintSampler); |
| 19 |
} |
| 20 |
|
| 21 |
SPIRV_Cross_Output main() |
| 22 |
{ |
| 23 |
vert_main(); |
| 24 |
SPIRV_Cross_Output stage_output; |
| 25 |
stage_output.gl_Position = gl_Position; |
| 26 |
return stage_output; |
| 27 |
} |