2017-08-21 08:01:03 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(binding = 1) uniform samplerBuffer uFloatSampler;
|
|
|
|
layout(binding = 2) uniform isamplerBuffer uIntSampler;
|
|
|
|
layout(binding = 3) uniform usamplerBuffer uUintSampler;
|
|
|
|
|
2017-08-21 08:26:44 +00:00
|
|
|
vec4 sample_from_function(samplerBuffer s0, isamplerBuffer s1, usamplerBuffer s2)
|
|
|
|
{
|
|
|
|
return texelFetch(s0, 20) +
|
|
|
|
intBitsToFloat(texelFetch(s1, 40)) +
|
|
|
|
uintBitsToFloat(texelFetch(s2, 60));
|
|
|
|
}
|
|
|
|
|
2017-08-21 08:01:03 +00:00
|
|
|
void main()
|
|
|
|
{
|
2017-08-21 08:26:44 +00:00
|
|
|
gl_Position = sample_from_function(uFloatSampler, uIntSampler, uUintSampler);
|
2017-08-21 08:01:03 +00:00
|
|
|
}
|