diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-12-07 15:00:15 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-12-07 15:00:15 +0300 |
commit | a11c4780d03d8fae664be3f39d51d63477bfa2ef (patch) | |
tree | eb976692af5194d530a2fd64474460514cb1ca0f /spirv_glsl.hpp | |
parent | 6d10da0224bd3214c9a507832e62d9fb6ae9620d (diff) |
GLSL: Emit nonuniformEXT in correct place for late-combined samplers.
Need to emit nonuniformEXT(sampler2D()) since constructor expressions in
Vulkan GLSL do not propgate the nonuniform qualifier.
Diffstat (limited to 'spirv_glsl.hpp')
-rw-r--r-- | spirv_glsl.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spirv_glsl.hpp b/spirv_glsl.hpp index 3c41efef..add549aa 100644 --- a/spirv_glsl.hpp +++ b/spirv_glsl.hpp @@ -405,6 +405,7 @@ protected: uint32_t coord = 0, coord_components = 0, dref = 0; uint32_t grad_x = 0, grad_y = 0, lod = 0, coffset = 0, offset = 0; uint32_t bias = 0, component = 0, sample = 0, sparse_texel = 0, min_lod = 0; + bool nonuniform_expression = false; }; virtual std::string to_function_args(const TextureFunctionArguments &args, bool *p_forward); |