diff options
author | Greg Fischer <greg@lunarg.com> | 2021-08-01 00:13:10 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 00:13:10 -0600 |
commit | e0f3fdf43385061a1e3a049208e98527ee6af4af (patch) | |
tree | 69dc619028b9c8e54afe41e05a468bbd6811e8a6 /glslang/MachineIndependent/localintermediate.h | |
parent | 50849374cb19559b1f85a0de1dc9b630cb1f4a07 (diff) | |
parent | 715f5c6cf11d88859699481de265784da0778e45 (diff) | |
download | glslang-e0f3fdf43385061a1e3a049208e98527ee6af4af.tar.gz |
Merge pull request #2716 from greg-lunarg/i2689
Add support for pragma STDGL invariant(all)
Diffstat (limited to 'glslang/MachineIndependent/localintermediate.h')
-rw-r--r-- | glslang/MachineIndependent/localintermediate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glslang/MachineIndependent/localintermediate.h b/glslang/MachineIndependent/localintermediate.h index 59d70e7a..6aa9399d 100644 --- a/glslang/MachineIndependent/localintermediate.h +++ b/glslang/MachineIndependent/localintermediate.h @@ -291,6 +291,7 @@ public: numEntryPoints(0), numErrors(0), numPushConstants(0), recursive(false), invertY(false), useStorageBuffer(false), + invariantAll(false), nanMinMaxClamp(false), depthReplacing(false), uniqueId(0), @@ -560,6 +561,8 @@ public: void setUseStorageBuffer() { useStorageBuffer = true; } bool usingStorageBuffer() const { return useStorageBuffer; } + void setInvariantAll() { invariantAll = true; } + bool isInvariantAll() const { return invariantAll; } void setDepthReplacing() { depthReplacing = true; } bool isDepthReplacing() const { return depthReplacing; } bool setLocalSize(int dim, int size) @@ -1068,6 +1071,7 @@ protected: bool recursive; bool invertY; bool useStorageBuffer; + bool invariantAll; bool nanMinMaxClamp; // true if desiring min/max/clamp to favor non-NaN over NaN bool depthReplacing; int localSize[3]; |