Commit a92c30ed by John Kessenich

Add access methods for consuming adapters to get the top-level shader modes like…

Add access methods for consuming adapters to get the top-level shader modes like number of invocations, vertex spacing, primitives, etc. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@26586 e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent d7dfe2c2
...@@ -182,6 +182,7 @@ public: ...@@ -182,6 +182,7 @@ public:
invocations = i; invocations = i;
return true; return true;
} }
int getInvocations() const { return invocations; }
bool setVertices(int m) bool setVertices(int m)
{ {
if (vertices > 0) if (vertices > 0)
...@@ -205,6 +206,7 @@ public: ...@@ -205,6 +206,7 @@ public:
vertexSpacing = s; vertexSpacing = s;
return true; return true;
} }
TVertexSpacing getVertexSpacing() const { return vertexSpacing; }
bool setVertexOrder(TVertexOrder o) bool setVertexOrder(TVertexOrder o)
{ {
if (vertexOrder != EvoNone) if (vertexOrder != EvoNone)
...@@ -212,8 +214,11 @@ public: ...@@ -212,8 +214,11 @@ public:
vertexOrder = o; vertexOrder = o;
return true; return true;
} }
TVertexOrder getVertexOrder() const { return vertexOrder; }
void setPointMode() { pointMode = true; } void setPointMode() { pointMode = true; }
bool getPointMode() const { return pointMode; }
void setXfbMode() { xfbMode = true; } void setXfbMode() { xfbMode = true; }
bool getXfbMode() const { return xfbMode; }
bool setOutputPrimitive(TLayoutGeometry p) bool setOutputPrimitive(TLayoutGeometry p)
{ {
if (outputPrimitive != ElgNone) if (outputPrimitive != ElgNone)
...@@ -221,6 +226,7 @@ public: ...@@ -221,6 +226,7 @@ public:
outputPrimitive = p; outputPrimitive = p;
return true; return true;
} }
TLayoutGeometry getOutputPrimitive() const { return outputPrimitive; }
void setOriginUpperLeft() { originUpperLeft = true; } void setOriginUpperLeft() { originUpperLeft = true; }
bool getOriginUpperLeft() const { return originUpperLeft; } bool getOriginUpperLeft() const { return originUpperLeft; }
void setPixelCenterInteger() { pixelCenterInteger = true; } void setPixelCenterInteger() { pixelCenterInteger = true; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment