Struct ClusterLightPipelineGpu
pub struct ClusterLightPipelineGpu {
pub build_aabbs_pipeline: ComputePipeline,
pub cull_lights_pipeline: ComputePipeline,
pub bind_group_layout: BindGroupLayout,
pub params_buf: Buffer,
pub cluster_aabbs_buf: Buffer,
pub point_lights_buf: Buffer,
pub cluster_light_indices_buf: Buffer,
pub cluster_grid_buf: Buffer,
}Expand description
Active GPU compute pipeline owner for 3D Clustered Light Culling (CLUSTER_LIGHT_WGSL).
Fields§
§build_aabbs_pipeline: ComputePipeline§cull_lights_pipeline: ComputePipeline§bind_group_layout: BindGroupLayout§params_buf: Buffer§cluster_aabbs_buf: Buffer§point_lights_buf: Buffer§cluster_light_indices_buf: Buffer§cluster_grid_buf: BufferImplementations§
§impl ClusterLightPipelineGpu
impl ClusterLightPipelineGpu
pub const TOTAL_CLUSTERS: u32
pub const MAX_LIGHTS_PER_CLUSTER: u32 = 64
pub fn new(device: &Device, max_lights: u32) -> ClusterLightPipelineGpu
Auto Trait Implementations§
impl !RefUnwindSafe for ClusterLightPipelineGpu
impl !UnwindSafe for ClusterLightPipelineGpu
impl Freeze for ClusterLightPipelineGpu
impl Send for ClusterLightPipelineGpu
impl Sync for ClusterLightPipelineGpu
impl Unpin for ClusterLightPipelineGpu
impl UnsafeUnpin for ClusterLightPipelineGpu
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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