pub fn bind_storage_texture(&self) -> Binding {
        Binding {
            gpu: &self.gpu,
            visibility: Binding::DEFAULT_VISIBILITY,
            ty: wgpu::BindingType::StorageTexture {
                // TODO: different texture view reps?
                view_dimension: match self.size.dim() {
                    wgpu::TextureDimension::D1 => wgpu::TextureViewDimension::D1,
                    wgpu::TextureDimension::D2 => wgpu::TextureViewDimension::D2,
                    wgpu::TextureDimension::D3 => wgpu::TextureViewDimension::D3,
                },
                access: wgpu::StorageTextureAccess::ReadWrite,
                format: self.format,
            },
            resource: wgpu::BindingResource::TextureView(&self.view),
        }
    }
/// Create a storage texture binding.
// Can be const following RFC 2632
Create a storage texture binding.
Can be const following RFC 2632
Create a storage texture binding . Can be const following RFC 2632
pub fn bind_storage_texture(&self) -> Binding {
        Binding {
            gpu: &self.gpu,
            visibility: Binding::DEFAULT_VISIBILITY,
            ty: wgpu::BindingType::StorageTexture {
                // TODO: different texture view reps?
                view_dimension: match self.size.dim() {
                    wgpu::TextureDimension::D1 => wgpu::TextureViewDimension::D1,
                    wgpu::TextureDimension::D2 => wgpu::TextureViewDimension::D2,
                    wgpu::TextureDimension::D3 => wgpu::TextureViewDimension::D3,
                },
                access: wgpu::StorageTextureAccess::ReadWrite,
                format: self.format,
            },
            resource: wgpu::BindingResource::TextureView(&self.view),
        }
    }
pub fn bind_storage_texture ( & self ) -> Binding { Binding { gpu : & self . gpu , visibility : Binding :: DEFAULT_VISIBILITY , ty : wgpu :: BindingType :: StorageTexture { // TODO: different texture view reps? view_dimension : match self . size . dim ( ) { wgpu :: TextureDimension :: D1 => wgpu :: TextureViewDimension :: D1 , wgpu :: TextureDimension :: D2 => wgpu :: TextureViewDimension :: D2 , wgpu :: TextureDimension :: D3 => wgpu :: TextureViewDimension :: D3 , } , access : wgpu :: StorageTextureAccess :: ReadWrite , format : self . format , } , resource : wgpu :: BindingResource :: TextureView ( & self . view ) , } }
Create a storage texture binding.
Create a storage texture binding .
&self
&self