Lines Matching refs:index
198 void SetUniversal(int index, const math::VEC4& vec) const in SetUniversal() argument
200 internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_UNIVREG_INDEX + index, 1, vec); in SetUniversal()
208 void SetUniversal(int index, const math::MTX34& mtx) const in SetUniversal() argument
210 internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_UNIVREG_INDEX + index, 3, mtx); in SetUniversal()
218 void SetUniversal(int index, const math::MTX44& mtx) const in SetUniversal() argument
220 internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_UNIVREG_INDEX + index, 4, mtx); in SetUniversal()
432 void SetUserVertexUniform(s32 index, ResShaderParameterValue parameter) const in SetUserVertexUniform() argument
436 this->SetVertexUniformBool(index, parameter.GetValueBool()); in SetUserVertexUniform()
440 internal::NWSetVertexUniform1fv(index, 1, parameter.GetValueF32()); in SetUserVertexUniform()
444 internal::NWSetVertexUniform2fv(index, 1, parameter.GetValueF32()); in SetUserVertexUniform()
448 internal::NWSetVertexUniform3fv(index, 1, parameter.GetValueF32()); in SetUserVertexUniform()
452 internal::NWSetVertexUniform4fv(index, 1, parameter.GetValueF32()); in SetUserVertexUniform()
461 void SetUserGeometryUniform(s32 index, ResShaderParameterValue parameter) const in SetUserGeometryUniform() argument
465 this->SetGeometryUniformBool(index, parameter.GetValueBool()); in SetUserGeometryUniform()
469 internal::NWSetGeometryUniform1fv(index, 1, parameter.GetValueF32()); in SetUserGeometryUniform()
473 internal::NWSetGeometryUniform2fv(index, 1, parameter.GetValueF32()); in SetUserGeometryUniform()
477 internal::NWSetGeometryUniform3fv(index, 1, parameter.GetValueF32()); in SetUserGeometryUniform()
481 internal::NWSetGeometryUniform4fv(index, 1, parameter.GetValueF32()); in SetUserGeometryUniform()
490 void SetVertexUniformBool(int index, bool value) const in SetVertexUniformBool() argument
492 NW_ASSERT(0 <= index && index < 16); in SetVertexUniformBool()
495 m_VertexIntUniforms[0] |= 0x1 << index; in SetVertexUniformBool()
499 m_VertexIntUniforms[0] &= ~(0x1 << index); in SetVertexUniformBool()
508 void SetGeometryUniformBool(int index, bool value) const in SetGeometryUniformBool() argument
510 NW_ASSERT(0 <= index && index < 16); in SetGeometryUniformBool()
513 m_GeometryIntUniforms[0] |= 0x1 << index; in SetGeometryUniformBool()
517 m_GeometryIntUniforms[0] &= ~(0x1 << index); in SetGeometryUniformBool()
526 void SetVertexUniformInt(int index, s32 value) const in SetVertexUniformInt() argument
528 NW_ASSERT(0 <= index && index < 4); in SetVertexUniformInt()
529 m_VertexIntUniforms[2 + index] = value & 0xFF; in SetVertexUniformInt()
537 void SetGeometryUniformInt(int index, s32 value) const in SetGeometryUniformInt() argument
539 NW_ASSERT(0 <= index && index < 4); in SetGeometryUniformInt()
540 m_GeometryIntUniforms[2 + index] = value & 0xFF; in SetGeometryUniformInt()
549 void SetVertexUniformInt(int index, s32 x, s32 y) const in SetVertexUniformInt() argument
551 NW_ASSERT(0 <= index && index < 4); in SetVertexUniformInt()
552 m_VertexIntUniforms[2 + index] = (x & 0xFF) | ((y & 0xFF) << 8); in SetVertexUniformInt()
561 void SetGeometryUniformInt(int index, s32 x, s32 y) const in SetGeometryUniformInt() argument
563 NW_ASSERT(0 <= index && index < 4); in SetGeometryUniformInt()
564 m_GeometryIntUniforms[2 + index] = (x & 0xFF) | ((y & 0xFF) << 8); in SetGeometryUniformInt()
574 void SetVertexUniformInt(int index, s32 x, s32 y, s32 z) const in SetVertexUniformInt() argument
576 NW_ASSERT(0 <= index && index < 4); in SetVertexUniformInt()
577 m_VertexIntUniforms[2 + index] = (x & 0xFF) | ((y & 0xFF) << 8) | ((z & 0xFF) << 16); in SetVertexUniformInt()
587 void SetGeometryUniformInt(int index, s32 x, s32 y, s32 z) const in SetGeometryUniformInt() argument
589 NW_ASSERT(0 <= index && index < 4); in SetGeometryUniformInt()
590 m_GeometryIntUniforms[2 + index] = (x & 0xFF) | ((y & 0xFF) << 8) | ((z & 0xFF) << 16); in SetGeometryUniformInt()