[Feat] (MG_Impl/Texture): Implement basic validators for texture.

This commit is contained in:
BZLZHH
2025-08-12 18:17:14 +08:00
parent 4eba014513
commit 7ba3258150
2 changed files with 51 additions and 0 deletions
@@ -0,0 +1,11 @@
#pragma once
#include "MG_Util/Types.h"
#include <Includes.h>
#include <MG_State/GLState/TextureState/TextureObject.h>
namespace MobileGL::MG_Impl::GLImpl {
namespace TextureImpl {
Bool ValidateTextureTarget(TextureTarget target);
Bool ValidateTextureName(GLuint texture, Bool allowZero = false);
} // namespace TextureImpl
} // namespace MobileGL::MG_Impl::GLImpl