Re-exports§
Modules§
- buffer
- egui
- This example is currently broken because I don’t understand the new egui textures since 0.17
- error
- Error types for core
- gpu
- Gpu abstraction
- pipeline
- prelude
- profiler
- texture
- viewport
- Need this for rendering to screen!
- winit
Macros§
Structs§
- Backends
- Represents the backends that wgpu will use.
- Bind
Group - Bind
Group Layout - Binding
- Buffer
- Probably best used as
RefCell<Buffer>
- Buffer
Builder - Command
Encoder - Compute
Pipeline - Compute
Pipeline Builder - Features
- Features that are not guaranteed to be supported.
- Frame
- Convenience wrapper for a frame buffer you render to.
Frame
will automatically submit the finished encoder to the queue and present the frame to the screen. This was previously a repesentation of the swap chain but since wgpu 0.11 it now wraps the surface texture - Gpu
- A struct that wraps over
Rc<Gpu>
which can be passed around by clone. Because this is aRc
, it will automatically be freed when there are no more references to it. It follows that any struct with aGpuHandle
will be always be guaranteed a valid reference to theGpu
. - GpuBuilder
- Builder for
GpuContext
. By default this is initialized with sensible values for our use case. - GpuCtx
- The HW GPU context which contains all wgpu context info. This is meant as an easier and more ergonomic way to pass around wgpu info. You can manually construct this with fields but it is recommended to use the builder.
- Pipeline
Builder - Profiler
- Query
Set - Render
Pass - Render
Pass Builder - Render
Pipeline - Sampler
- Sampler
Builder - Scoped
Buffer View - Utility struct for creating a
BufferView
that auto unmaps when dropped. - Texture
- Texture
Builder - Texture
View - Viewport
- A
Viewport
is a rectangular area of that can be presented. - Viewport
Builder - bf16
- Export half crate
A 16-bit floating point type implementing thebfloat16
format. - f16
- Export half crate
A 16-bit floating point type implementing the IEEE 754-2008 standardbinary16
a.k.ahalf
format. - i8n
- i16n
- u8n
- u16n
Enums§
- Buffer
Init Content - Compare
Function - Comparison function used for depth and stencil operations.
- GpuError
- Texture
Format - Underlying texture data format.
Constants§
Traits§
- Begin
Render Frame - Bindings
Ext - Color
Target Builder Ext - Depth
Attachment Build - Render
Attachment Build - Renderer
- Texture
Dimensions - Texture
Format Ext - Vertex
Format Type - Automatic vertex format derivation Some general assumptions are made here:
- Vertex
Layout - Vertex
Layout Impl
Type Aliases§
- BoxError
- Generic error type for any error. Recommended to use with terminal errors only, which are expected to be displayed and not handled.
- D1
- D2
- D3
- Depth
Attachment - Render
Attachment