Enum gfx_backend_gl::Backend [−][src]
pub enum Backend {}
Trait Implementations
impl Backend for Backend
[src]
impl Backend for Backend
[src]type Instance = Instance
The corresponding instance type for this backend.
type PhysicalDevice = PhysicalDevice
The corresponding physical device type for this backend.
type Device = Device
The corresponding logical device type for this backend.
type Surface = Surface
The corresponding surface type for this backend.
type QueueFamily = QueueFamily
The corresponding queue family type for this backend.
type Queue = Queue
The corresponding command queue type for this backend.
type CommandBuffer = CommandBuffer
The corresponding command buffer type for this backend.
type Memory = Memory
The corresponding memory type for this backend.
type CommandPool = CommandPool
The corresponding command pool type for this backend.
type ShaderModule = ShaderModule
The corresponding shader module type for this backend.
type RenderPass = RenderPass
The corresponding render pass type for this backend.
type Framebuffer = Framebuffer
The corresponding framebuffer type for this backend.
type Buffer = Buffer
The corresponding buffer type for this backend.
type BufferView = BufferView
The corresponding buffer view type for this backend.
type Image = Image
The corresponding image type for this backend.
type ImageView = ImageView
The corresponding image view type for this backend.
type Sampler = FatSampler
The corresponding sampler type for this backend.
type ComputePipeline = ComputePipeline
The corresponding compute pipeline type for this backend.
type GraphicsPipeline = GraphicsPipeline
The corresponding graphics pipeline type for this backend.
type PipelineLayout = PipelineLayout
The corresponding pipeline layout type for this backend.
type PipelineCache = ()
The corresponding pipeline cache type for this backend.
type DescriptorSetLayout = Arc<Vec<DescriptorSetLayoutBinding>>
The corresponding descriptor set layout type for this backend.
type DescriptorPool = DescriptorPool
The corresponding descriptor pool type for this backend.
type DescriptorSet = DescriptorSet
The corresponding descriptor set type for this backend.
type Fence = Fence
The corresponding fence type for this backend.
type Semaphore = Semaphore
The corresponding semaphore type for this backend.
type Event = ()
The corresponding event type for this backend.
type QueryPool = ()
The corresponding query pool type for this backend.
impl Device<Backend> for Device
[src]
impl Device<Backend> for Device
[src]unsafe fn allocate_memory(
&self,
mem_type: MemoryTypeId,
size: u64
) -> Result<Memory, AllocationError>
[src]
&self,
mem_type: MemoryTypeId,
size: u64
) -> Result<Memory, AllocationError>
unsafe fn create_command_pool(
&self,
_family: QueueFamilyId,
flags: CommandPoolCreateFlags
) -> Result<CommandPool, OutOfMemory>
[src]
&self,
_family: QueueFamilyId,
flags: CommandPoolCreateFlags
) -> Result<CommandPool, OutOfMemory>
unsafe fn destroy_command_pool(&self, pool: CommandPool)
[src]
unsafe fn create_render_pass<'a, Ia, Is, Id>(
&self,
attachments: Ia,
subpasses: Is,
_dependencies: Id
) -> Result<RenderPass, OutOfMemory> where
Ia: Iterator<Item = Attachment>,
Is: Iterator<Item = SubpassDesc<'a>>,
[src]
&self,
attachments: Ia,
subpasses: Is,
_dependencies: Id
) -> Result<RenderPass, OutOfMemory> where
Ia: Iterator<Item = Attachment>,
Is: Iterator<Item = SubpassDesc<'a>>,
unsafe fn create_pipeline_layout<'a, Is, Ic>(
&self,
layouts: Is,
_: Ic
) -> Result<PipelineLayout, OutOfMemory> where
Is: Iterator<Item = &'a Arc<Vec<DescriptorSetLayoutBinding>>>,
[src]
&self,
layouts: Is,
_: Ic
) -> Result<PipelineLayout, OutOfMemory> where
Is: Iterator<Item = &'a Arc<Vec<DescriptorSetLayoutBinding>>>,
unsafe fn create_pipeline_cache(
&self,
_data: Option<&[u8]>
) -> Result<(), OutOfMemory>
[src]
&self,
_data: Option<&[u8]>
) -> Result<(), OutOfMemory>
unsafe fn get_pipeline_cache_data(
&self,
_cache: &()
) -> Result<Vec<u8>, OutOfMemory>
[src]
&self,
_cache: &()
) -> Result<Vec<u8>, OutOfMemory>
unsafe fn destroy_pipeline_cache(&self, _: ())
[src]
unsafe fn merge_pipeline_caches<'a, I>(
&self,
_: &mut (),
_: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = &'a ()>,
[src]
&self,
_: &mut (),
_: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = &'a ()>,
unsafe fn create_graphics_pipeline<'a>(
&self,
desc: &GraphicsPipelineDesc<'a, B>,
_cache: Option<&()>
) -> Result<GraphicsPipeline, CreationError>
[src]
&self,
desc: &GraphicsPipelineDesc<'a, B>,
_cache: Option<&()>
) -> Result<GraphicsPipeline, CreationError>
unsafe fn create_compute_pipeline<'a>(
&self,
desc: &ComputePipelineDesc<'a, B>,
_cache: Option<&()>
) -> Result<ComputePipeline, CreationError>
[src]
&self,
desc: &ComputePipelineDesc<'a, B>,
_cache: Option<&()>
) -> Result<ComputePipeline, CreationError>
unsafe fn create_framebuffer<I>(
&self,
_render_pass: &RenderPass,
_attachments: I,
_extent: Extent
) -> Result<Framebuffer, OutOfMemory>
[src]
&self,
_render_pass: &RenderPass,
_attachments: I,
_extent: Extent
) -> Result<Framebuffer, OutOfMemory>
unsafe fn create_shader_module(
&self,
raw_data: &[u32]
) -> Result<ShaderModule, ShaderError>
[src]
&self,
raw_data: &[u32]
) -> Result<ShaderModule, ShaderError>
unsafe fn create_shader_module_from_naga(
&self,
shader: NagaShader
) -> Result<ShaderModule, (ShaderError, NagaShader)>
[src]
&self,
shader: NagaShader
) -> Result<ShaderModule, (ShaderError, NagaShader)>
unsafe fn create_sampler(
&self,
info: &SamplerDesc
) -> Result<FatSampler, AllocationError>
[src]
&self,
info: &SamplerDesc
) -> Result<FatSampler, AllocationError>
unsafe fn create_buffer(
&self,
size: u64,
usage: Usage,
_sparse: SparseFlags
) -> Result<Buffer, CreationError>
[src]
&self,
size: u64,
usage: Usage,
_sparse: SparseFlags
) -> Result<Buffer, CreationError>
unsafe fn get_buffer_requirements(&self, buffer: &Buffer) -> Requirements
[src]
unsafe fn bind_buffer_memory(
&self,
memory: &Memory,
offset: u64,
buffer: &mut Buffer
) -> Result<(), BindError>
[src]
&self,
memory: &Memory,
offset: u64,
buffer: &mut Buffer
) -> Result<(), BindError>
unsafe fn map_memory(
&self,
memory: &mut Memory,
segment: Segment
) -> Result<*mut u8, MapError>
[src]
&self,
memory: &mut Memory,
segment: Segment
) -> Result<*mut u8, MapError>
unsafe fn unmap_memory(&self, memory: &mut Memory)
[src]
unsafe fn flush_mapped_memory_ranges<'a, I>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
[src]
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
unsafe fn invalidate_mapped_memory_ranges<'a, I>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
[src]
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
unsafe fn create_buffer_view(
&self,
_: &Buffer,
_: Option<Format>,
_: SubRange
) -> Result<BufferView, ViewCreationError>
[src]
&self,
_: &Buffer,
_: Option<Format>,
_: SubRange
) -> Result<BufferView, ViewCreationError>
unsafe fn create_image(
&self,
kind: Kind,
num_levels: Level,
format: Format,
_tiling: Tiling,
usage: Usage,
_sparse: SparseFlags,
_view_caps: ViewCapabilities
) -> Result<Image, CreationError>
[src]
&self,
kind: Kind,
num_levels: Level,
format: Format,
_tiling: Tiling,
usage: Usage,
_sparse: SparseFlags,
_view_caps: ViewCapabilities
) -> Result<Image, CreationError>
unsafe fn get_image_requirements(&self, unbound: &Image) -> Requirements
[src]
unsafe fn get_image_subresource_footprint(
&self,
image: &Image,
sub: Subresource
) -> SubresourceFootprint
[src]
&self,
image: &Image,
sub: Subresource
) -> SubresourceFootprint
unsafe fn bind_image_memory(
&self,
_memory: &Memory,
_offset: u64,
_image: &mut Image
) -> Result<(), BindError>
[src]
&self,
_memory: &Memory,
_offset: u64,
_image: &mut Image
) -> Result<(), BindError>
unsafe fn create_image_view(
&self,
image: &Image,
kind: ViewKind,
view_format: Format,
swizzle: Swizzle,
_usage: Usage,
range: SubresourceRange
) -> Result<ImageView, ViewCreationError>
[src]
&self,
image: &Image,
kind: ViewKind,
view_format: Format,
swizzle: Swizzle,
_usage: Usage,
range: SubresourceRange
) -> Result<ImageView, ViewCreationError>
unsafe fn create_descriptor_pool<I>(
&self,
_: usize,
_: I,
_: DescriptorPoolCreateFlags
) -> Result<DescriptorPool, OutOfMemory> where
I: Iterator<Item = DescriptorRangeDesc>,
[src]
&self,
_: usize,
_: I,
_: DescriptorPoolCreateFlags
) -> Result<DescriptorPool, OutOfMemory> where
I: Iterator<Item = DescriptorRangeDesc>,
unsafe fn create_descriptor_set_layout<'a, I, J>(
&self,
layout: I,
_immutable_samplers: J
) -> Result<Arc<Vec<DescriptorSetLayoutBinding>>, OutOfMemory> where
I: Iterator<Item = DescriptorSetLayoutBinding>,
J: Iterator<Item = &'a FatSampler>,
[src]
&self,
layout: I,
_immutable_samplers: J
) -> Result<Arc<Vec<DescriptorSetLayoutBinding>>, OutOfMemory> where
I: Iterator<Item = DescriptorSetLayoutBinding>,
J: Iterator<Item = &'a FatSampler>,
unsafe fn write_descriptor_set<'a, I>(&self, op: DescriptorSetWrite<'a, B, I>) where
I: Iterator<Item = Descriptor<'a, B>>,
[src]
I: Iterator<Item = Descriptor<'a, B>>,
unsafe fn copy_descriptor_set<'a>(&self, op: DescriptorSetCopy<'a, B>)
[src]
fn create_semaphore(&self) -> Result<Semaphore, OutOfMemory>
[src]
fn create_fence(&self, signaled: bool) -> Result<Fence, OutOfMemory>
[src]
unsafe fn reset_fence(&self, fence: &mut Fence) -> Result<(), OutOfMemory>
[src]
unsafe fn wait_for_fence(
&self,
fence: &Fence,
timeout_ns: u64
) -> Result<bool, WaitError>
[src]
&self,
fence: &Fence,
timeout_ns: u64
) -> Result<bool, WaitError>
unsafe fn get_fence_status(&self, fence: &Fence) -> Result<bool, DeviceLost>
[src]
fn create_event(&self) -> Result<(), OutOfMemory>
[src]
unsafe fn get_event_status(&self, _event: &()) -> Result<bool, WaitError>
[src]
unsafe fn set_event(&self, _event: &mut ()) -> Result<(), OutOfMemory>
[src]
unsafe fn reset_event(&self, _event: &mut ()) -> Result<(), OutOfMemory>
[src]
unsafe fn free_memory(&self, memory: Memory)
[src]
unsafe fn create_query_pool(
&self,
ty: Type,
_count: Id
) -> Result<(), CreationError>
[src]
&self,
ty: Type,
_count: Id
) -> Result<(), CreationError>
unsafe fn destroy_query_pool(&self, _: ())
[src]
unsafe fn get_query_pool_results(
&self,
_pool: &(),
_queries: Range<Id>,
_data: &mut [u8],
_stride: Stride,
_flags: ResultFlags
) -> Result<bool, WaitError>
[src]
&self,
_pool: &(),
_queries: Range<Id>,
_data: &mut [u8],
_stride: Stride,
_flags: ResultFlags
) -> Result<bool, WaitError>
unsafe fn destroy_shader_module(&self, _: ShaderModule)
[src]
unsafe fn destroy_render_pass(&self, _: RenderPass)
[src]
unsafe fn destroy_pipeline_layout(&self, _: PipelineLayout)
[src]
unsafe fn destroy_graphics_pipeline(&self, pipeline: GraphicsPipeline)
[src]
unsafe fn destroy_compute_pipeline(&self, pipeline: ComputePipeline)
[src]
unsafe fn destroy_framebuffer(&self, framebuffer: Framebuffer)
[src]
unsafe fn destroy_buffer(&self, _buffer: Buffer)
[src]
unsafe fn destroy_buffer_view(&self, _: BufferView)
[src]
unsafe fn destroy_image(&self, image: Image)
[src]
unsafe fn destroy_image_view(&self, _image_view: ImageView)
[src]
unsafe fn destroy_sampler(&self, sampler: FatSampler)
[src]
unsafe fn destroy_descriptor_pool(&self, _: DescriptorPool)
[src]
unsafe fn destroy_descriptor_set_layout(
&self,
_: Arc<Vec<DescriptorSetLayoutBinding>>
)
[src]
&self,
_: Arc<Vec<DescriptorSetLayoutBinding>>
)
unsafe fn destroy_fence(&self, fence: Fence)
[src]
unsafe fn destroy_semaphore(&self, _: Semaphore)
[src]
unsafe fn destroy_event(&self, _event: ())
[src]
fn wait_idle(&self) -> Result<(), OutOfMemory>
[src]
unsafe fn set_image_name(&self, _image: &mut Image, _name: &str)
[src]
unsafe fn set_buffer_name(&self, _buffer: &mut Buffer, _name: &str)
[src]
unsafe fn set_command_buffer_name(
&self,
_command_buffer: &mut CommandBuffer,
_name: &str
)
[src]
&self,
_command_buffer: &mut CommandBuffer,
_name: &str
)
unsafe fn set_semaphore_name(&self, _semaphore: &mut Semaphore, _name: &str)
[src]
unsafe fn set_fence_name(&self, _fence: &mut Fence, _name: &str)
[src]
unsafe fn set_framebuffer_name(
&self,
_framebuffer: &mut Framebuffer,
_name: &str
)
[src]
&self,
_framebuffer: &mut Framebuffer,
_name: &str
)
unsafe fn set_render_pass_name(
&self,
_render_pass: &mut RenderPass,
_name: &str
)
[src]
&self,
_render_pass: &mut RenderPass,
_name: &str
)
unsafe fn set_descriptor_set_name(
&self,
_descriptor_set: &mut DescriptorSet,
_name: &str
)
[src]
&self,
_descriptor_set: &mut DescriptorSet,
_name: &str
)
unsafe fn set_descriptor_set_layout_name(
&self,
_descriptor_set_layout: &mut Arc<Vec<DescriptorSetLayoutBinding>>,
_name: &str
)
[src]
&self,
_descriptor_set_layout: &mut Arc<Vec<DescriptorSetLayoutBinding>>,
_name: &str
)
unsafe fn set_pipeline_layout_name(
&self,
_pipeline_layout: &mut PipelineLayout,
_name: &str
)
[src]
&self,
_pipeline_layout: &mut PipelineLayout,
_name: &str
)
fn start_capture(&self)
[src]
fn stop_capture(&self)
[src]
pub unsafe fn wait_for_fences<'a, I>(
&self,
fences: I,
wait: WaitFor,
timeout_ns: u64
) -> Result<bool, WaitError> where
I: Iterator<Item = &'a <B as Backend>::Fence>,
[src]
&self,
fences: I,
wait: WaitFor,
timeout_ns: u64
) -> Result<bool, WaitError> where
I: Iterator<Item = &'a <B as Backend>::Fence>,
impl Instance<Backend> for Instance
[src]
impl Instance<Backend> for Instance
[src]fn create(_: &str, _: u32) -> Result<Self, UnsupportedBackend>
[src]
fn enumerate_adapters(&self) -> Vec<Adapter<Backend>>
[src]
unsafe fn create_surface(
&self,
has_handle: &impl HasRawWindowHandle
) -> Result<Surface, InitError>
[src]
&self,
has_handle: &impl HasRawWindowHandle
) -> Result<Surface, InitError>
unsafe fn destroy_surface(&self, surface: Surface)
[src]
impl PhysicalDevice<Backend> for PhysicalDevice
[src]
impl PhysicalDevice<Backend> for PhysicalDevice
[src]unsafe fn open(
&self,
families: &[(&QueueFamily, &[QueuePriority])],
requested_features: Features
) -> Result<Gpu<Backend>, CreationError>
[src]
&self,
families: &[(&QueueFamily, &[QueuePriority])],
requested_features: Features
) -> Result<Gpu<Backend>, CreationError>
fn format_properties(&self, _: Option<Format>) -> Properties
[src]
fn image_format_properties(
&self,
format: Format,
_dimensions: u8,
_tiling: Tiling,
_usage: Usage,
_view_caps: ViewCapabilities
) -> Option<FormatProperties>
[src]
&self,
format: Format,
_dimensions: u8,
_tiling: Tiling,
_usage: Usage,
_view_caps: ViewCapabilities
) -> Option<FormatProperties>
fn memory_properties(&self) -> MemoryProperties
[src]
fn features(&self) -> Features
[src]
fn properties(&self) -> PhysicalDeviceProperties
[src]
pub fn is_valid_cache(&self, _cache: &[u8]) -> bool
[src]
impl PresentationSurface<Backend> for Surface
[src]
impl PresentationSurface<Backend> for Surface
[src]type SwapchainImage = SwapchainImage
An opaque type wrapping the swapchain image.
unsafe fn configure_swapchain(
&mut self,
device: &Device,
config: SwapchainConfig
) -> Result<(), SwapchainError>
[src]
&mut self,
device: &Device,
config: SwapchainConfig
) -> Result<(), SwapchainError>
unsafe fn unconfigure_swapchain(&mut self, device: &Device)
[src]
unsafe fn acquire_image(
&mut self,
_timeout_ns: u64
) -> Result<(Self::SwapchainImage, Option<Suboptimal>), AcquireError>
[src]
&mut self,
_timeout_ns: u64
) -> Result<(Self::SwapchainImage, Option<Suboptimal>), AcquireError>
impl StructuralEq for Backend
[src]
impl StructuralEq for Backend
[src]impl StructuralPartialEq for Backend
[src]
impl StructuralPartialEq for Backend
[src]impl Surface<Backend> for Surface
[src]
impl Surface<Backend> for Surface
[src]fn supports_queue_family(&self, _: &QueueFamily) -> bool
[src]
fn capabilities(&self, _physical_device: &PhysicalDevice) -> SurfaceCapabilities
[src]
fn supported_formats(
&self,
_physical_device: &PhysicalDevice
) -> Option<Vec<Format>>
[src]
&self,
_physical_device: &PhysicalDevice
) -> Option<Vec<Format>>
Auto Trait Implementations
impl RefUnwindSafe for Backend
impl RefUnwindSafe for Backend
impl UnwindSafe for Backend
impl UnwindSafe for Backend