diff options
author | alelenv <40001162+alelenv@users.noreply.github.com> | 2020-05-21 04:38:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 05:38:41 -0600 |
commit | 59216d5cd87eee78dc979e30645c4c2240a7c351 (patch) | |
tree | ce11b7ee5da7c10cd783a6d00cc2bac31ee42754 /glslang/MachineIndependent/localintermediate.h | |
parent | eba1389a01f7d1935773c432522f4481caf568aa (diff) | |
download | glslang-59216d5cd87eee78dc979e30645c4c2240a7c351.tar.gz |
Add support for primitive culling layout qualifier. (#2220)
* Add support for primitive culling layout qualifier.
* Add error checks for primitive flags and negative test.
Diffstat (limited to 'glslang/MachineIndependent/localintermediate.h')
-rw-r--r-- | glslang/MachineIndependent/localintermediate.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/glslang/MachineIndependent/localintermediate.h b/glslang/MachineIndependent/localintermediate.h index 996e347f..9f7b9977 100644 --- a/glslang/MachineIndependent/localintermediate.h +++ b/glslang/MachineIndependent/localintermediate.h @@ -276,7 +276,8 @@ public: needToLegalize(false), binaryDoubleOutput(false), usePhysicalStorageBuffer(false), - uniformLocationBase(0) + uniformLocationBase(0), + layoutPrimitiveCulling(false) #endif { localSize[0] = 1; @@ -742,6 +743,8 @@ public: void setLayoutDerivativeMode(ComputeDerivativeMode mode) { computeDerivativeMode = mode; } bool hasLayoutDerivativeModeNone() const { return computeDerivativeMode != LayoutDerivativeNone; } ComputeDerivativeMode getLayoutDerivativeModeNone() const { return computeDerivativeMode; } + void setLayoutPrimitiveCulling() { layoutPrimitiveCulling = true; } + bool getLayoutPrimitiveCulling() const { return layoutPrimitiveCulling; } bool setPrimitives(int m) { if (primitives != TQualifier::layoutNotSet) @@ -974,6 +977,7 @@ protected: ComputeDerivativeMode computeDerivativeMode; int primitives; int numTaskNVBlocks; + bool layoutPrimitiveCulling; // Base shift values std::array<unsigned int, EResCount> shiftBinding; |