Skip to main content

Module types

Module types 

Source

Modules§

flags
limits
pipeline_state

Enums§

AstcBlock
ASTC compressed texture block size — see TextureFormat::Astc.
AstcChannel
ASTC compressed texture channel encoding — see TextureFormat::Astc.
BlendFactor
Mirrors wgpu::BlendFactor, for ColorTargetState blending.
BlendOperation
How source and destination color combine when blending — see BlendFactor.
CompareFunction
Mirrors wgpu::CompareFunction — depth/stencil/sampler comparison mode.
CursorGrabMode
Mirrors winit::window::CursorGrabMode, for Window::set_cursor_grab.
CursorIcon
Mirrors winit::window::CursorIcon — kept as our own type so no winit type leaks into the public API.
Face
Which triangle winding to cull — passed to Material::with_cull_mode.
IndexFormat
Index buffer element width — mirrors wgpu::IndexFormat.
KeyCode
Mirrors winit::keyboard::KeyCode (physical key position, not the character it produces) — no winit type leaks into the public API.
MouseButton
Mirrors winit_input_helper’s mouse button representation.
PolygonMode
Fill, wireframe, or point rendering for a Material’s pipeline.
StencilOperation
Mirrors wgpu::StencilOperation — what a stencil test does on pass/fail.
StorageTextureAccess
Read/write access for a storage texture binding — see BindingKind::storage_texture.
TextureFormat
Mirrors wgpu::TextureFormat — every GPU pixel format a Texture or render target can use.
TextureSampleType
How a bound texture is sampled in-shader — see BindingKind::texture_2d and friends, which build this implicitly.
TextureViewDimension
Mirrors wgpu::TextureViewDimension — 2D, 2D array, cube, etc.
TouchPhase
Mirrors winit::event::TouchPhase.
VertexFormat
Mirrors wgpu::VertexFormat — the layout of one vertex attribute, used in a VertexAttribute.
VertexStepMode
Whether a vertex buffer advances per-vertex or per-instance.