mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[glsl-in] Remove wrong texture types
Glsl doesn't have depth textures what it has is combined image/samplerShadow
This commit is contained in:
committed by
Dzmitry Malyshau
parent
bd339e5f60
commit
7532c2abaa
@@ -133,12 +133,6 @@ pub fn parse_type(type_name: &str) -> Option<Type> {
|
||||
"3D" => (ImageDimension::D3, false, sampled(false)),
|
||||
"Cube" => (ImageDimension::Cube, false, sampled(false)),
|
||||
"CubeArray" => (ImageDimension::D2, false, sampled(false)),
|
||||
"1DShadow" => (ImageDimension::D1, false, ImageClass::Depth),
|
||||
"1DArrayShadow" => (ImageDimension::D1, true, ImageClass::Depth),
|
||||
"2DShadow" => (ImageDimension::D2, false, ImageClass::Depth),
|
||||
"2DArrayShadow" => (ImageDimension::D2, true, ImageClass::Depth),
|
||||
"CubeShadow" => (ImageDimension::Cube, false, ImageClass::Depth),
|
||||
"CubeArrayShadow" => (ImageDimension::Cube, true, ImageClass::Depth),
|
||||
_ => return None,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user