Status: Accepted
Owner: ----
CC:
cnor...@google.com,
ti...@google.com, jmad...@
chromium.org Components: CaptureReplay
OS: All
Priority: Medium
Renderer: Vulkan DesktopGL SwiftShader
Type: Defect
New issue 5654 by
ti...@google.com: 'samplerBuffer' : Illegal use of reserved word
https://bugs.chromium.org/p/angleproject/issues/detail?id=5654Looking at Issue 3573: Vulkan: Texture buffers - it seems `EXT_texture_buffer` should be supported, but "Special Forces Group 2" is hitting a compilation error with one of it's shaders:
ANGLE : ERROR: 0:466: 'samplerBuffer' : Illegal use of reserved word
ANGLE : ERROR: 0:466: 'samplerBuffer' : syntax error
I'm able to recreate this with a simple test:
TEST_P(TextureBufferTestES31, SamplerBuffer)
{
ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_EXT_texture_buffer"));
constexpr char kVS[] =
"#version 310 es\n"
"in highp vec2 position;\n"
"uniform samplerBuffer buffer;\n"
"void main() {\n"
" gl_Position = vec4(position, 0, 1);\n"
"}";
constexpr char kFS[] =
"#version 310 es\n"
"uniform highp vec4 uniformColor;\n"
"out highp vec4 fragColor;"
"void main() {\n"
" fragColor = uniformColor;\n"
"}";
GLuint program = CompileProgram(kVS, kFS);
ASSERT_NE(0u, program);
}
Which results in:
shader compilation failed: ERROR: 0:3: 'samplerBuffer' : Illegal use of reserved word
ERROR: 0:3: 'samplerBuffer' : syntax error
../../src/tests/gl_tests/TextureTest.cpp:8677: Failure
Expected: (0u) != (program), actual: 0 vs 0
[ FAILED ] TextureBufferTestES31.SamplerBuffer/ES3_1_Vulkan, where GetParam() = ES3_1_Vulkan (550 ms)
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings