pub enum WGSLType {
Show 35 variants
Bool,
I32,
U32,
F32,
F16,
Vec2f,
Vec3f,
Vec4f,
Vec2i,
Vec3i,
Vec4i,
Vec2u,
Vec3u,
Vec4u,
Vec2b,
Mat2x2f,
Mat3x3f,
Mat4x4f,
Mat2x4f,
Mat4x2f,
Texture2D,
Texture2DArray,
TextureCube,
Texture3D,
TextureDepth2D,
TextureStorage2D {
format: String,
access: String,
},
TextureMultisampled2D,
Sampler,
SamplerComparison,
Struct(String),
Array(Box<WGSLType>, u32),
RuntimeArray(Box<WGSLType>),
Ptr {
address_space: WGSLAddressSpace,
inner: Box<WGSLType>,
},
AtomicU32,
AtomicI32,
}Expand description
WGSL type system.
Variants§
Bool
bool
I32
i32
U32
u32
F32
f32
F16
f16 (requires enable f16;)
Vec2f
vec2<f32>
Vec3f
vec3<f32>
Vec4f
vec4<f32>
Vec2i
vec2<i32>
Vec3i
vec3<i32>
Vec4i
vec4<i32>
Vec2u
vec2<u32>
Vec3u
vec3<u32>
Vec4u
vec4<u32>
Vec2b
vec2<bool>
Mat2x2f
mat2x2<f32>
Mat3x3f
mat3x3<f32>
Mat4x4f
mat4x4<f32>
Mat2x4f
mat2x4<f32>
Mat4x2f
mat4x2<f32>
Texture2D
texture_2d<f32>
Texture2DArray
texture_2d_array<f32>
TextureCube
texture_cube<f32>
Texture3D
texture_3d<f32>
TextureDepth2D
texture_depth_2d
TextureStorage2D
texture_storage_2d<rgba8unorm, write>
TextureMultisampled2D
texture_multisampled_2d<f32>
Sampler
sampler
SamplerComparison
sampler_comparison
Struct(String)
A named struct type.
Array(Box<WGSLType>, u32)
A fixed-length array: array<T, N>.
RuntimeArray(Box<WGSLType>)
A runtime-sized array: array<T>.
Ptr
A pointer type: ptr<address_space, T>.
AtomicU32
atomic<u32>
AtomicI32
atomic<i32>
Implementations§
Trait Implementations§
impl Eq for WGSLType
impl StructuralPartialEq for WGSLType
Auto Trait Implementations§
impl Freeze for WGSLType
impl RefUnwindSafe for WGSLType
impl Send for WGSLType
impl Sync for WGSLType
impl Unpin for WGSLType
impl UnsafeUnpin for WGSLType
impl UnwindSafe for WGSLType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more