| 114 | } |
| 115 | |
| 116 | void GFXGLShaderConstHandle::reinit( const GFXShaderConstDesc& desc, GLuint loc, S32 samplerNum ) |
| 117 | { |
| 118 | mDesc = desc; |
| 119 | mLocation = loc; |
| 120 | mSamplerNum = samplerNum; |
| 121 | mOffset = 0; |
| 122 | mInstancingConstant = false; |
| 123 | |
| 124 | U32 elemSize = shaderConstTypeSize(mDesc.constType); |
| 125 | AssertFatal(elemSize, "GFXGLShaderConst::GFXGLShaderConst - elemSize is 0"); |
| 126 | mSize = mDesc.arraySize * elemSize; |
| 127 | mValid = true; |
| 128 | } |
| 129 | |
| 130 | |
| 131 | U32 GFXGLShaderConstHandle::getSize() const |
no test coverage detected