mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
RSX: shaders fix and vertex texture implementation
This commit is contained in:
parent
d2964c1fa4
commit
3fc471eb32
20 changed files with 1101 additions and 334 deletions
|
|
@ -98,6 +98,13 @@ void GLProgram::SetTex(u32 index)
|
|||
checkForGlError(fmt::Format("SetTex(%u - %d - %d)", id, index, loc));
|
||||
}
|
||||
|
||||
void GLProgram::SetVTex(u32 index)
|
||||
{
|
||||
int loc = GetLocation(fmt::Format("vtex%u", index));
|
||||
glProgramUniform1i(id, loc, index);
|
||||
checkForGlError(fmt::Format("SetVTex(%u - %d - %d)", id, index, loc));
|
||||
}
|
||||
|
||||
void GLProgram::Delete()
|
||||
{
|
||||
if(!IsCreated()) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue