Skip to content
Snippets Groups Projects
Unverified Commit 27d57e0c authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #3442 from ReinUsesLisp/fix-3d-assert

shader/texture: Fix illegal 3D texture assert
parents 4a6a1aea 7dc488a3
No related branches found
No related tags found
No related merge requests found
......@@ -527,7 +527,7 @@ Node4 ShaderIR::GetTextureCode(Instruction instr, TextureType texture_type,
const bool is_bindless = bindless_reg.has_value();
UNIMPLEMENTED_IF(texture_type == TextureType::TextureCube && is_array && is_shadow);
ASSERT_MSG(texture_type != TextureType::Texture3D || is_array || is_shadow,
ASSERT_MSG(texture_type != TextureType::Texture3D || !is_array || !is_shadow,
"Illegal texture type");
const SamplerInfo info{texture_type, is_array, is_shadow, false};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment