pub struct EnvironmentMap {
pub main_view: TextureView,
pub size: Extent,
pub weight_texture: Texture,
pub weight_view: TextureView,
pub weight_mips: Vec<TextureView>,
pub prepare_pipeline: ComputePipeline,
}Fields§
§main_view: TextureView§size: Extent§weight_texture: Texture§weight_view: TextureView§weight_mips: Vec<TextureView>§prepare_pipeline: ComputePipelineImplementations§
Source§impl EnvironmentMap
impl EnvironmentMap
pub fn init_pipeline( shader: &Shader, gpu: &Context, ) -> Result<ComputePipeline, &'static str>
pub fn with_pipeline( dummy: &DummyResources, prepare_pipeline: ComputePipeline, ) -> Self
pub fn new(shader: &Shader, dummy: &DummyResources, gpu: &Context) -> Self
pub fn destroy(&mut self, gpu: &Context)
pub fn assign( &mut self, view: TextureView, extent: Extent, encoder: &mut CommandEncoder, gpu: &Context, )
Auto Trait Implementations§
impl Freeze for EnvironmentMap
impl RefUnwindSafe for EnvironmentMap
impl Send for EnvironmentMap
impl Sync for EnvironmentMap
impl Unpin for EnvironmentMap
impl UnwindSafe for EnvironmentMap
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