pub struct ForwardPlusGpuResources {
pub light_buffer: Option<BufferId>,
pub light_index_buffer: Option<BufferId>,
pub light_grid_buffer: Option<BufferId>,
pub culling_uniforms_buffer: Option<BufferId>,
pub culling_bind_group: Option<BindGroupId>,
pub forward_bind_group: Option<BindGroupId>,
pub culling_pipeline: Option<ComputePipelineId>,
pub render_pipeline: Option<RenderPipelineId>,
}Expand description
GPU resource handles for the Forward+ compute pass.
These are created during lane initialization and used each frame for light culling and rendering.
Fields§
§light_buffer: Option<BufferId>Light buffer containing all GpuLight instances.
light_index_buffer: Option<BufferId>Buffer containing per-tile light index lists.
light_grid_buffer: Option<BufferId>Buffer containing (offset, count) pairs per tile.
culling_uniforms_buffer: Option<BufferId>Uniform buffer for culling parameters.
culling_bind_group: Option<BindGroupId>Bind group for the culling compute shader.
forward_bind_group: Option<BindGroupId>Bind group for the forward pass (light data).
culling_pipeline: Option<ComputePipelineId>Compute pipeline for light culling.
render_pipeline: Option<RenderPipelineId>Render pipeline for the Forward+ pass.
Implementations§
Source§impl ForwardPlusGpuResources
impl ForwardPlusGpuResources
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Returns true if all required resources are initialized.
Trait Implementations§
Source§impl Clone for ForwardPlusGpuResources
impl Clone for ForwardPlusGpuResources
Source§fn clone(&self) -> ForwardPlusGpuResources
fn clone(&self) -> ForwardPlusGpuResources
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForwardPlusGpuResources
impl Debug for ForwardPlusGpuResources
Source§impl Default for ForwardPlusGpuResources
impl Default for ForwardPlusGpuResources
Source§fn default() -> ForwardPlusGpuResources
fn default() -> ForwardPlusGpuResources
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ForwardPlusGpuResources
impl RefUnwindSafe for ForwardPlusGpuResources
impl Send for ForwardPlusGpuResources
impl Sync for ForwardPlusGpuResources
impl Unpin for ForwardPlusGpuResources
impl UnwindSafe for ForwardPlusGpuResources
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().