Skip to content

Commit

Permalink
Added GLSL helper function textureBindlessQueryLevelsCube()
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Jun 19, 2024
1 parent 3fc4765 commit 10ca414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lvk/vulkan/VulkanClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4196,6 +4196,9 @@ lvk::ShaderModuleState lvk::VulkanContext::createShaderModuleFromGLSL(ShaderStag
int textureBindlessQueryLevels2D(uint textureid) {
return textureQueryLevels(nonuniformEXT(kTextures2D[textureid]));
}
int textureBindlessQueryLevelsCube(uint textureid) {
return textureQueryLevels(nonuniformEXT(kTexturesCube[textureid]));
}
)";
}
sourcePatched += source;
Expand Down

0 comments on commit 10ca414

Please sign in to comment.