Enums§
Functions§
- build_
bind_ group - Builds a bind group from multiple resources. Buffers created from
Dataare returned in order (texture views and samplers are not returned). Pre-built buffers passed viaBufferare consumed and also returned. - build_
buffer - build_
buffer_ sized - build_
dynamic_ storage_ bind_ group - Same as
build_dynamic_uniform_bind_groupbut for a storage buffer. - build_
dynamic_ storage_ buffer - Builds an empty buffer sized to hold
countelements of a dynamically-offset storage buffer, and returns the buffer along with the per-element stride. - build_
dynamic_ uniform_ bind_ group - Allocates a dynamically-offset uniform buffer sized for
countelements and builds a bind group for it in one step. Returns the buffer, the per-element stride to use as the dynamic offset inset_bind_group, and the bind group. Use with a layout built fromcrate::wgpu::material::MaterialBindingKind::dynamic_uniform_buffer(or theComputeBindingKindequivalent). - build_
dynamic_ uniform_ buffer - Builds an empty buffer sized to hold
countelements of a dynamically-offset uniform buffer, and returns the buffer along with the per-element stride to use as dynamic offsets inRenderPass::set_bind_group. - build_
storage_ bind_ group - build_
uniform_ bind_ group - dynamic_
buffer_ binding - Builds the bind group entry resource for a dynamically-offset binding. Unlike
buffer.as_entire_binding(), this scopes the entry to a singleelement_size-sized element starting at offset 0 in the buffer — required because the dynamic offset passed toset_bind_groupat draw/dispatch time is added on top of this base range, and wgpu validatesoffset + size <= buffer size. Binding the whole buffer here would make any nonzero dynamic offset fail validation. - dynamic_
storage_ offset_ stride - Same as
dynamic_uniform_offset_stridebut for storage buffers. - dynamic_
uniform_ offset_ stride - Rounds
element_sizeup to the device’s required alignment for dynamic offsets on uniform buffers, giving the stride to use when packing multiple elements into one buffer for use withMaterialBindingKind::dynamic_uniform_buffer. - resolve_
buffer - resolve_
storage_ buffer - resolve_
uniform_ buffer - update_
buffer_ at - Writes
dataintobufferat a byte offset, for updating one element of a dynamically-offset buffer without touching the others.offsetshould be a multiple of the stride returned by [dynamic_offset_stride]. - update_
uniform_ buffer