Initial support for integer format textures.

They can't be rendered to and ImageData can't use the formats, for now.
This commit is contained in:
Alex Szpakowski
2021-08-12 16:38:54 -03:00
parent 4caeb27047
commit 48b3a4e860
11 changed files with 502 additions and 252 deletions
+2 -3
View File
@@ -635,10 +635,9 @@ bool Shader::isDefaultActive()
return false;
}
TextureType Shader::getMainTextureType() const
const Shader::UniformInfo *Shader::getMainTextureInfo() const
{
const UniformInfo *info = getUniformInfo(BUILTIN_TEXTURE_MAIN);
return info != nullptr ? info->textureType : TEXTURE_MAX_ENUM;
return getUniformInfo(BUILTIN_TEXTURE_MAIN);
}
void Shader::validateDrawState(PrimitiveType primtype, Texture *maintex) const