Crate agpu

Source

Re-exports§

pub use wgpu;
pub use crate::winit::*;
pub use crate::egui::*;

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§

bitor
bitor_variadic
const_flag
pub_const_flag
wgpu_inner_deref

Structs§

Backends
Represents the backends that wgpu will use.
BindGroup
BindGroupLayout
Binding
Buffer
Probably best used as RefCell<Buffer>
BufferBuilder
CommandEncoder
ComputePipeline
ComputePipelineBuilder
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 a Rc, it will automatically be freed when there are no more references to it. It follows that any struct with a GpuHandle will be always be guaranteed a valid reference to the Gpu.
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.
PipelineBuilder
Profiler
QuerySet
RenderPass
RenderPassBuilder
RenderPipeline
Sampler
SamplerBuilder
ScopedBufferView
Utility struct for creating a BufferView that auto unmaps when dropped.
Texture
TextureBuilder
TextureView
Viewport
A Viewport is a rectangular area of that can be presented.
ViewportBuilder
bf16
Export half crate
A 16-bit floating point type implementing the bfloat16 format.
f16
Export half crate
A 16-bit floating point type implementing the IEEE 754-2008 standard binary16 a.k.a half format.
i8n
i16n
u8n
u16n

Enums§

BufferInitContent
CompareFunction
Comparison function used for depth and stencil operations.
GpuError
TextureFormat
Underlying texture data format.

Constants§

MAX_BUFFER_SIZE
MAX_QUERIES
PIPELINE_STATISTICS_LABELS
QUERYSET_BUFFER_USAGE

Traits§

BeginRenderFrame
BindingsExt
ColorTargetBuilderExt
DepthAttachmentBuild
RenderAttachmentBuild
Renderer
TextureDimensions
TextureFormatExt
VertexFormatType
Automatic vertex format derivation Some general assumptions are made here:
VertexLayout
VertexLayoutImpl

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
DepthAttachment
RenderAttachment

Derive Macros§

VertexLayout
VertexLayoutInstance