GPU: Support setting integer and boolean uniforms.
This commit is contained in:
parent
14f999c124
commit
344d165542
@ -190,6 +190,8 @@ typedef enum{
|
||||
}GPU_Primitive_t;
|
||||
|
||||
void GPU_SetUniform(u32 startreg, u32* data, u32 numreg);
|
||||
void GPU_SetIntUniform(u32 startreg, u32 value);
|
||||
void GPU_SetBoolUniforms(u32 values);
|
||||
|
||||
void GPU_SetViewport(u32* depthBuffer, u32* colorBuffer, u32 x, u32 y, u32 w, u32 h);
|
||||
|
||||
|
@ -234,6 +234,16 @@ void GPU_SetUniform(u32 startreg, u32* data, u32 numreg)
|
||||
GPUCMD_Add(0x000F02C1, data, numreg*4);
|
||||
}
|
||||
|
||||
void GPU_SetIntUniform(u32 reg, u32 value)
|
||||
{
|
||||
GPUCMD_AddSingleParam(0x000F02B1 + reg, value);
|
||||
}
|
||||
|
||||
void GPU_SetBoolUniforms(u32 values)
|
||||
{
|
||||
GPUCMD_AddSingleParam(0x000F02B0, values);
|
||||
}
|
||||
|
||||
//TODO : fix
|
||||
u32 f32tof24(float f)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user