[Fix] (Diligent/Drawing): Bind shader resources to pipeline.

This commit is contained in:
BZLZHH
2025-06-08 00:11:24 +08:00
parent beecb3dac0
commit f5c3514dde
2 changed files with 27 additions and 22 deletions
+3 -4
View File
@@ -46,13 +46,12 @@ public:
};
class TextureUnitState {
private:
GLenum activeTarget = GL_TEXTURE_2D;
public:
MG_Global::unordered_map<GLenum, GLuint> boundTextures;
void Bind(GLenum target, GLuint texture);
GLuint GetBoundTexture(GLenum target);
GLenum activeTarget = GL_TEXTURE_2D;
MG_Global::unordered_map<GLenum, GLuint> boundTextures;
};
class TextureState {