Skip to main content

Module flags

Module flags 

Source
Expand description

Hand-rolled bitflag mirrors for wgpu’s flag-style types — small enough (at most a couple dozen bits) that pulling in the bitflags crate isn’t worth it. Each mirrors its wgpu counterpart’s bit layout exactly, so converting into wgpu is just from_bits_truncate.

Structs§

BufferUsages
Allowed usages of a buffer — mirrors wgpu::BufferUsages bit-for-bit.
ColorWrites
Which color channels a render pipeline writes — mirrors wgpu::ColorWrites bit-for-bit.
ShaderStages
Which shader stage(s) a binding is visible from — mirrors wgpu::ShaderStages bit-for-bit.
TextureUsages
Allowed usages of a texture — mirrors wgpu::TextureUsages bit-for-bit.