Allow subpassLoad for ANGLE
authorShahbaz Youssefi <ShabbyX@gmail.com>
Sat, 12 Sep 2020 02:30:49 +0000 (22:30 -0400)
committerShahbaz Youssefi <ShabbyX@gmail.com>
Sat, 12 Sep 2020 02:30:49 +0000 (22:30 -0400)
Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
glslang/MachineIndependent/Initialize.cpp

index d773a0a..8d5d04f 100644 (file)
@@ -5746,8 +5746,7 @@ void TBuiltIns::add2ndGenerationSamplingImaging(int version, EProfile profile, c
                     for (int dim = Esd2D; dim <= EsdCube; ++dim) { // 2D, 3D, and Cube
 #else
 #if defined(GLSLANG_ANGLE)
-                    // TODO: what is subpass?
-                    for (int dim = Esd2D; dim < EsdSubpass; ++dim) { // 2D, ..., buffer
+                    for (int dim = Esd2D; dim < EsdNumDims; ++dim) { // 2D, ..., buffer, subpass
 #else
                     for (int dim = Esd1D; dim < EsdNumDims; ++dim) { // 1D, ..., buffer, subpass
 #endif