Skip to content

Commit

Permalink
[gles] make is_layered_target more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Oct 13, 2023
1 parent 22fcc2e commit e0f5625
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wgpu-hal/src/gles/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ pub(super) fn uniform_byte_size(glsl_uniform_type: u32) -> u32 {

pub(super) fn is_layered_target(target: u32) -> bool {
match target {
glow::TEXTURE_2D | glow::TEXTURE_CUBE_MAP => false,
glow::TEXTURE_2D_ARRAY | glow::TEXTURE_CUBE_MAP_ARRAY | glow::TEXTURE_3D => true,
_ => false,
_ => unreachable!(),
}
}

0 comments on commit e0f5625

Please sign in to comment.