}
}
- void VertexProcessor::setFloatConstant(unsigned int index, const float value[4])
- {
- if(index < VERTEX_UNIFORM_VECTORS)
- {
- c[index][0] = value[0];
- c[index][1] = value[1];
- c[index][2] = value[2];
- c[index][3] = value[3];
- }
- else ASSERT(false);
- }
-
- void VertexProcessor::setIntegerConstant(unsigned int index, const int integer[4])
- {
- if(index < 16)
- {
- i[index][0] = integer[0];
- i[index][1] = integer[1];
- i[index][2] = integer[2];
- i[index][3] = integer[3];
- }
- else ASSERT(false);
- }
-
- void VertexProcessor::setBooleanConstant(unsigned int index, int boolean)
- {
- if(index < 16)
- {
- b[index] = boolean != 0;
- }
- else ASSERT(false);
- }
-
void VertexProcessor::setUniformBuffer(int index, sw::Resource* buffer, int offset)
{
uniformBufferInfo[index].buffer = buffer;
void setInputStream(int index, const Stream &stream);
void resetInputStreams();
- void setFloatConstant(unsigned int index, const float value[4]);
- void setIntegerConstant(unsigned int index, const int integer[4]);
- void setBooleanConstant(unsigned int index, int boolean);
-
void setUniformBuffer(int index, sw::Resource* uniformBuffer, int offset);
void lockUniformBuffers(byte** u, sw::Resource* uniformBuffers[]);
void setRoutineCacheSize(int cacheSize);
- // Shader constants
- float4 c[VERTEX_UNIFORM_VECTORS + 1]; // One extra for indices out of range, c[VERTEX_UNIFORM_VECTORS] = {0, 0, 0, 0}
- int4 i[16];
- bool b[16];
-
float pointSizeMin;
float pointSizeMax;