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:
parent
d7dfe2c2b2
commit
a92c30ed23
1 changed files with 6 additions and 0 deletions
|
|
@ -182,6 +182,7 @@ public:
|
|||
invocations = i;
|
||||
return true;
|
||||
}
|
||||
int getInvocations() const { return invocations; }
|
||||
bool setVertices(int m)
|
||||
{
|
||||
if (vertices > 0)
|
||||
|
|
@ -205,6 +206,7 @@ public:
|
|||
vertexSpacing = s;
|
||||
return true;
|
||||
}
|
||||
TVertexSpacing getVertexSpacing() const { return vertexSpacing; }
|
||||
bool setVertexOrder(TVertexOrder o)
|
||||
{
|
||||
if (vertexOrder != EvoNone)
|
||||
|
|
@ -212,8 +214,11 @@ public:
|
|||
vertexOrder = o;
|
||||
return true;
|
||||
}
|
||||
TVertexOrder getVertexOrder() const { return vertexOrder; }
|
||||
void setPointMode() { pointMode = true; }
|
||||
bool getPointMode() const { return pointMode; }
|
||||
void setXfbMode() { xfbMode = true; }
|
||||
bool getXfbMode() const { return xfbMode; }
|
||||
bool setOutputPrimitive(TLayoutGeometry p)
|
||||
{
|
||||
if (outputPrimitive != ElgNone)
|
||||
|
|
@ -221,6 +226,7 @@ public:
|
|||
outputPrimitive = p;
|
||||
return true;
|
||||
}
|
||||
TLayoutGeometry getOutputPrimitive() const { return outputPrimitive; }
|
||||
void setOriginUpperLeft() { originUpperLeft = true; }
|
||||
bool getOriginUpperLeft() const { return originUpperLeft; }
|
||||
void setPixelCenterInteger() { pixelCenterInteger = true; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue