| 1 |
#version 450 |
| 2 |
|
| 3 |
layout(binding = 1) uniform samplerBuffer uFloatSampler; |
| 4 |
layout(binding = 2) uniform isamplerBuffer uIntSampler; |
| 5 |
layout(binding = 3) uniform usamplerBuffer uUintSampler; |
| 6 |
|
| 7 |
vec4 sample_from_function(samplerBuffer s0, isamplerBuffer s1, usamplerBuffer s2) |
| 8 |
{ |
| 9 |
return texelFetch(s0, 20) + |
| 10 |
intBitsToFloat(texelFetch(s1, 40)) + |
| 11 |
uintBitsToFloat(texelFetch(s2, 60)); |
| 12 |
} |
| 13 |
|
| 14 |
void main() |
| 15 |
{ |
| 16 |
gl_Position = sample_from_function(uFloatSampler, uIntSampler, uUintSampler); |
| 17 |
} |