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
This commit is contained in:
John Kessenich 2014-05-08 23:57:13 +00:00
parent d7dfe2c2b2
commit a92c30ed23

View File

@ -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:
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:
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:
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; }