programCollection.glslSources.add("frag") << glu::FragmentSource(
"#version 310 es\n"
"#extension GL_EXT_texture_buffer : enable\n"
- "layout (set=0, binding=0) uniform highp usamplerBuffer u_buffer;\n"
+ "layout (set=0, binding=0) uniform highp utextureBuffer u_buffer;\n"
"layout (location = 0) out highp uint o_color;\n"
"void main()\n"
"{\n"
decls << "layout(set = " << s << ", binding = " << b << ") buffer sbodef" << s << "_" << b << " { int val; } ssbo" << s << "_" << b << array.str() << ";\n";
break;
case VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER:
- decls << "layout(set = " << s << ", binding = " << b << ") uniform isamplerBuffer texbo" << s << "_" << b << array.str() << ";\n";
+ decls << "layout(set = " << s << ", binding = " << b << ") uniform itextureBuffer texbo" << s << "_" << b << array.str() << ";\n";
break;
case VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER:
decls << "layout(r32i, set = " << s << ", binding = " << b << ") uniform iimageBuffer image" << s << "_" << b << array.str() << ";\n";
"#version 310 es\n"
"#extension GL_EXT_texture_buffer : require\n"
"precision highp float;\n"
- "layout(set=0, binding=0) uniform highp usamplerBuffer u_sampler;\n"
+ "layout(set=0, binding=0) uniform highp utextureBuffer u_sampler;\n"
"void main (void) {\n"
"\tgl_PointSize = 1.0;\n"
"\thighp uint val = texelFetch(u_sampler, gl_VertexIndex).x;\n"
const char* const fragmentShader =
"#version 310 es\n"
"#extension GL_EXT_texture_buffer : require\n"
+ "#extension GL_EXT_samplerless_texture_functions : require\n"
"precision highp float;\n"
"precision highp int;\n"
- "layout(set=0, binding=0) uniform highp usamplerBuffer u_sampler;\n"
+ "layout(set=0, binding=0) uniform highp utextureBuffer u_sampler;\n"
"layout(location = 0) out highp vec4 o_color;\n"
"layout(push_constant) uniform PushC\n"
"{\n"
if (isFloatFormat(bufferFormat))
{
layoutTypeStr = "rgba32f";
- inTexelBufferTypeStr = readFromStorage ? "imageBuffer" : "samplerBuffer";
+ inTexelBufferTypeStr = readFromStorage ? "imageBuffer" : "textureBuffer";
outTexelBufferTypeStr = "imageBuffer";
}
else if (isUintFormat(bufferFormat))
{
layoutTypeStr = "rgba32ui";
- inTexelBufferTypeStr = readFromStorage ? "uimageBuffer" : "usamplerBuffer";
+ inTexelBufferTypeStr = readFromStorage ? "uimageBuffer" : "utextureBuffer";
outTexelBufferTypeStr = "uimageBuffer";
}
else if (isIntFormat(bufferFormat))
{
layoutTypeStr = "rgba32i";
- inTexelBufferTypeStr = readFromStorage ? "iimageBuffer" : "isamplerBuffer";
+ inTexelBufferTypeStr = readFromStorage ? "iimageBuffer" : "itextureBuffer";
outTexelBufferTypeStr = "iimageBuffer";
}
else if (bufferFormat == VK_FORMAT_A2B10G10R10_UNORM_PACK32)
{
layoutTypeStr = "rgb10_a2";
- inTexelBufferTypeStr = readFromStorage ? "imageBuffer" : "samplerBuffer"; outTexelBufferTypeStr = "imageBuffer";
+ inTexelBufferTypeStr = readFromStorage ? "imageBuffer" : "textureBuffer"; outTexelBufferTypeStr = "imageBuffer";
}
else
{