Exemplo n.º 1
0
void Renderer::setShaderConstantArrayStruct(const char *name, const void* constant, const int elementSize, const UINT count)
{
	if (selectedShader != SHADER_NONE)
	{
		setShaderConstantRaw(name, constant, elementSize*count);
	}
}
Exemplo n.º 2
0
void Renderer::setShaderConstantArray3f(const char *name, const Vec3 *constant, const UINT count)
{
	if(selectedShader != SHADER_NONE)
		setShaderConstantRaw(name, constant, count * sizeof(Vec3));
}
Exemplo n.º 3
0
void Renderer::setShaderConstantArray4x4f(const char *name, const Mat4x4 *constant, const UINT count)
{
	if(selectedShader != SHADER_NONE)
		setShaderConstantRaw(name, constant, count * sizeof(Mat4x4));
}
Exemplo n.º 4
0
void Renderer::setShaderConstantArray1f(const char *name, const float *constant, const UINT count)
{
	if(selectedShader != SHADER_NONE)
		setShaderConstantRaw(name, constant, count * sizeof(float));
}
Exemplo n.º 5
0
void Renderer::setShaderConstant4x4f(const char *name, const Mat4x4 &constant)
{
	if(selectedShader != SHADER_NONE)
		setShaderConstantRaw(name, &constant, sizeof(constant));
}
Exemplo n.º 6
0
void Renderer::setShaderConstantArray4x4f(const char *name, const mat4 *constant, const uint count){
	ASSERT(selectedShader != SHADER_NONE);
	setShaderConstantRaw(name, constant, count * sizeof(mat4));
}
Exemplo n.º 7
0
void Renderer::setShaderConstantArray1f(const char *name, const float *constant, const uint count){
	ASSERT(selectedShader != SHADER_NONE);
	setShaderConstantRaw(name, constant, count * sizeof(float));
}
Exemplo n.º 8
0
void Renderer::setShaderConstant4x4f(const char *name, const mat4 &constant){
	ASSERT(selectedShader != SHADER_NONE);
	setShaderConstantRaw(name, &constant, sizeof(constant));
}