mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 20:58:31 +09:00
[Feat] (MG_State/ProgramObject, MG_Backend/DirectGLES): bind texture to uniform in backend
This commit is contained in:
@@ -92,7 +92,7 @@ namespace MobileGL {
|
||||
// Be aware, there could be gaps in between these vectors
|
||||
// Locations can be not sequential
|
||||
m_uniformIndexInTProgram.resize(m_maxUniformLocation + 1, 4095);
|
||||
m_uniformSamplerOrImageUnitIndex.resize(m_maxUniformLocation + 1, 0);
|
||||
m_uniformSamplerOrImageUnitIndex.resize(m_maxUniformLocation + 1, -1);
|
||||
|
||||
Vector<int> unallocatedUniformIndex;
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace MobileGL {
|
||||
m_uniformSamplerOrImageUnitIndex[location] = unit;
|
||||
}
|
||||
|
||||
Int SetUniformSamplerOrImageUnitIndex(Uint location) const {
|
||||
Int GetUniformSamplerOrImageUnitIndex(Uint location) const {
|
||||
return m_uniformSamplerOrImageUnitIndex[location];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user