[Feat] (MG_Impl/Program, MG_State/Program): initial impl of shader related states

This commit is contained in:
2025-08-11 15:19:35 +08:00
parent 9944408104
commit 2c40177f06
9 changed files with 231 additions and 38 deletions
+12
View File
@@ -54,6 +54,15 @@ namespace MobileGL {
Int GetActiveTextureUnit() const;
void SetActiveTextureUnit(Int unit);
// Program
Uint CreateProgram();
Uint CreateShader(ShaderStage stage);
void MarkProgramForDeletion(Uint index);
void MarkShaderForDeletion(Uint index);
Bool ValidateProgramName(Uint index) const;
Bool ValidateShaderName(Uint index) const;
SharedPtr<ProgramObject> GetProgramObject(Uint index);
SharedPtr<ShaderObject> GetShaderObject(Uint index);
private:
// Error
ErrorState m_errorState;
@@ -66,6 +75,9 @@ namespace MobileGL {
// Texture
TextureState m_textureState;
// Program
ProgramState m_programState;
};
} // namespace GLState