pub type BackendRenderTarget = Handle<GrBackendRenderTarget>;
Aliased Type§
struct BackendRenderTarget(/* private fields */);
Implementations§
Source§impl BackendRenderTarget
impl BackendRenderTarget
pub fn new_gl( (width, height): (i32, i32), sample_count: impl Into<Option<usize>>, stencil_bits: usize, info: FramebufferInfo, ) -> Self
👎Deprecated since 0.67.0: use gpu::backend_render_targets::make_gl()
pub fn new_vulkan((width, height): (i32, i32), info: &ImageInfo) -> Self
👎Deprecated since 0.67.0: use gpu::backend_render_targets::make_vk()
pub fn new_metal((width, height): (i32, i32), mtl_info: &TextureInfo) -> Self
👎Deprecated since 0.74.0: use gpu::backend_render_targets::make_mtl()
pub fn dimensions(&self) -> ISize
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn sample_count(&self) -> usize
pub fn stencil_bits(&self) -> usize
pub fn backend(&self) -> BackendAPI
pub fn is_framebuffer_only(&self) -> bool
pub fn gl_framebuffer_info(&self) -> Option<FramebufferInfo>
pub fn vulkan_image_info(&self) -> Option<ImageInfo>
pub fn set_vulkan_image_layout(&mut self, layout: ImageLayout) -> &mut Self
pub fn metal_texture_info(&self) -> Option<TextureInfo>
pub fn backend_format(&self) -> BackendFormat
pub fn set_mutable_state(&mut self, state: &MutableTextureState)
pub fn is_protected(&self) -> bool
pub fn is_valid(&self) -> bool
👎Deprecated since 0.37.0: Exposed BackendRenderTargets are always valid.