pub(crate) fn create_uninitialized_image_msaa(
    this: &Arc<RwLock<Self>>, dimensions: (u32, u32), format: ImageDataFormat,
    num_msaa_samples: NumSamples,
  ) -> SarektResult<(BufferImageHandle<BL>, BufferOrImage<BL::BackendHandle>)> {
    let mut buffer_store = this
      .write()
      .expect("Could not unlock BufferStore due to previous panic");

    let buffer_backend_handle = buffer_store
      .buffer_image_loader
      .create_uninitialized_image(dimensions, format, num_msaa_samples)?;
    let buffer_or_image = BufferOrImage::new(buffer_backend_handle, ResourceType::Image);

    let inner_key = buffer_store
      .loaded_buffers_and_images
      .insert(buffer_or_image);

    Ok((
      BufferImageHandle {
        inner_key,
        resource_type: ResourceType::Image,
        buffer_store: Arc::downgrade(this),
      },
      buffer_or_image,
    ))
  }
/// Same as above but allows for MSAA to be used, useful when creating
/// internal render targets.
Same as above but allows for MSAA to be used, useful when creating
internal render targets.
Same as above but allows for MSAA to be used useful when creating internal render targets .
pub(crate) fn create_uninitialized_image_msaa(
    this: &Arc<RwLock<Self>>, dimensions: (u32, u32), format: ImageDataFormat,
    num_msaa_samples: NumSamples,
  ) -> SarektResult<(BufferImageHandle<BL>, BufferOrImage<BL::BackendHandle>)> {
    let mut buffer_store = this
      .write()
      .expect("Could not unlock BufferStore due to previous panic");
    let buffer_backend_handle = buffer_store
      .buffer_image_loader
      .create_uninitialized_image(dimensions, format, num_msaa_samples)?;
    let buffer_or_image = BufferOrImage::new(buffer_backend_handle, ResourceType::Image);
    let inner_key = buffer_store
      .loaded_buffers_and_images
      .insert(buffer_or_image);
    Ok((
      BufferImageHandle {
        inner_key,
        resource_type: ResourceType::Image,
        buffer_store: Arc::downgrade(this),
      },
      buffer_or_image,
    ))
  }
pub ( crate ) fn create_uninitialized_image_msaa ( this : & Arc < RwLock < Self > > , dimensions : ( u32 , u32 ) , format : ImageDataFormat , num_msaa_samples : NumSamples , ) -> SarektResult < ( BufferImageHandle < BL > , BufferOrImage < BL :: BackendHandle > ) > { let mut buffer_store = this . write ( ) . expect ( " " ) ; let buffer_backend_handle = buffer_store . buffer_image_loader . create_uninitialized_image ( dimensions , format , num_msaa_samples ) ? ; let buffer_or_image = BufferOrImage :: new ( buffer_backend_handle , ResourceType :: Image ) ; let inner_key = buffer_store . loaded_buffers_and_images . insert ( buffer_or_image ) ; Ok ( ( BufferImageHandle { inner_key , resource_type : ResourceType :: Image , buffer_store : Arc :: downgrade ( this ) , } , buffer_or_image , ) ) }
Same as above but allows for MSAA to be used, useful when creating
internal render targets.
Same as above but allows for MSAA to be used useful when creating internal render targets .
this
&Arc<RwLock<Self>>
dimensions
(u32, u32)
format
ImageDataFormat
num_msaa_samples
NumSamples
this
&Arc<RwLock<Self>>
dimensions
(u32, u32)
format
ImageDataFormat
num_msaa_samples
NumSamples