Hook up missing reflection data for writable textures in compute

This commit is contained in:
Alex Szpakowski
2021-08-23 16:53:55 -03:00
parent 63e3bd1823
commit 7038c66ab2
+7
View File
@@ -160,6 +160,13 @@ void Shader::mapActiveUniforms()
}
else if (u.baseType == UNIFORM_STORAGETEXTURE)
{
const auto reflectionit = validationReflection.storageTextures.find(u.name);
if (reflectionit != validationReflection.storageTextures.end())
{
u.storageTextureFormat = reflectionit->second.format;
u.access = reflectionit->second.access;
}
StorageTextureBinding binding = {};
binding.gltexture = gl.getDefaultTexture(u.textureType, u.dataBaseType);
binding.type = u.textureType;