mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Hook up missing reflection data for writable textures in compute
This commit is contained in:
@@ -160,6 +160,13 @@ void Shader::mapActiveUniforms()
|
|||||||
}
|
}
|
||||||
else if (u.baseType == UNIFORM_STORAGETEXTURE)
|
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 = {};
|
StorageTextureBinding binding = {};
|
||||||
binding.gltexture = gl.getDefaultTexture(u.textureType, u.dataBaseType);
|
binding.gltexture = gl.getDefaultTexture(u.textureType, u.dataBaseType);
|
||||||
binding.type = u.textureType;
|
binding.type = u.textureType;
|
||||||
|
|||||||
Reference in New Issue
Block a user