Trait bevy_render::render_resource::encase::CalculateSizeFor
source · pub trait CalculateSizeFor {
// Required method
fn calculate_size_for(nr_of_el: u64) -> NonZero<u64>;
}
Expand description
Trait implemented for WGSL runtime-sized arrays and WGSL structs containing runtime-sized arrays (non fixed-footprint types)
Required Methods§
sourcefn calculate_size_for(nr_of_el: u64) -> NonZero<u64>
fn calculate_size_for(nr_of_el: u64) -> NonZero<u64>
Returns the size of Self
assuming the (contained) runtime-sized array has nr_of_el
elements
Object Safety§
This trait is not object safe.