Skip to content

Commit

Permalink
vulkan: fix typo preventing storage textures in shaders from working.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Mar 9, 2024
1 parent b08f35d commit b6c47cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/graphics/vulkan/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,8 @@ void Shader::compileShaders()
for (const auto &r : shaderResources.storage_images)
{
std::string name = canonicaliizeUniformName(r.name);
const auto &uniformit = reflection.storageBuffers.find(name);
if (uniformit == reflection.storageBuffers.end())
const auto &uniformit = reflection.storageTextures.find(name);
if (uniformit == reflection.storageTextures.end())
{
handleUnknownUniformName(name.c_str());
continue;
Expand Down

0 comments on commit b6c47cd

Please sign in to comment.