Struct ash::Device
[−]
[src]
pub struct Device<V: FunctionPointers> { /* fields omitted */ }
Methods
impl<V: FunctionPointers> Device<V>
[src]
Trait Implementations
impl<V: Clone + FunctionPointers> Clone for Device<V> where V::DeviceFp: Clone
[src]
fn clone(&self) -> Device<V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl DeviceV1_0 for Device<V1_0>
[src]
fn handle(&self) -> Device
fn fp_v1_0(&self) -> &DeviceFnV1_0
unsafe fn destroy_device(&self,
allocation_callbacks: Option<&AllocationCallbacks>)
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_sampler(&self,
sampler: Sampler,
allocation_callbacks: Option<&AllocationCallbacks>)
sampler: Sampler,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn free_memory(&self,
memory: DeviceMemory,
allocation_callbacks: Option<&AllocationCallbacks>)
memory: DeviceMemory,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_fence(&self,
fence: Fence,
allocation_callbacks: Option<&AllocationCallbacks>)
fence: Fence,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_image(&self,
image: Image,
allocation_callbacks: Option<&AllocationCallbacks>)
image: Image,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_command_pool(&self,
pool: CommandPool,
allocation_callbacks: Option<&AllocationCallbacks>)
pool: CommandPool,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_image_view(&self,
image_view: ImageView,
allocation_callbacks: Option<&AllocationCallbacks>)
image_view: ImageView,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_render_pass(&self,
renderpass: RenderPass,
allocation_callbacks: Option<&AllocationCallbacks>)
renderpass: RenderPass,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_framebuffer(&self,
framebuffer: Framebuffer,
allocation_callbacks: Option<&AllocationCallbacks>)
framebuffer: Framebuffer,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_pipeline_layout(&self,
pipeline_layout: PipelineLayout,
allocation_callbacks: Option<&AllocationCallbacks>)
pipeline_layout: PipelineLayout,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_buffer(&self,
buffer: Buffer,
allocation_callbacks: Option<&AllocationCallbacks>)
buffer: Buffer,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_shader_module(&self,
shader: ShaderModule,
allocation_callbacks: Option<&AllocationCallbacks>)
shader: ShaderModule,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_pipeline(&self,
pipeline: Pipeline,
allocation_callbacks: Option<&AllocationCallbacks>)
pipeline: Pipeline,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_semaphore(&self,
semaphore: Semaphore,
allocation_callbacks: Option<&AllocationCallbacks>)
semaphore: Semaphore,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_descriptor_pool(&self,
pool: DescriptorPool,
allocation_callbacks: Option<&AllocationCallbacks>)
pool: DescriptorPool,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn destroy_descriptor_set_layout(&self,
layout: DescriptorSetLayout,
allocation_callbacks: Option<&AllocationCallbacks>)
layout: DescriptorSetLayout,
allocation_callbacks: Option<&AllocationCallbacks>)
unsafe fn free_descriptor_sets(&self,
pool: DescriptorPool,
descriptor_sets: &[DescriptorSet])
pool: DescriptorPool,
descriptor_sets: &[DescriptorSet])
unsafe fn update_descriptor_sets(&self,
descriptor_writes: &[WriteDescriptorSet],
descriptor_copies: &[CopyDescriptorSet])
descriptor_writes: &[WriteDescriptorSet],
descriptor_copies: &[CopyDescriptorSet])
unsafe fn create_sampler(&self,
create_info: &SamplerCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Sampler>
create_info: &SamplerCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Sampler>
unsafe fn cmd_copy_buffer(&self,
command_buffer: CommandBuffer,
src_buffer: Buffer,
dst_buffer: Buffer,
regions: &[BufferCopy])
command_buffer: CommandBuffer,
src_buffer: Buffer,
dst_buffer: Buffer,
regions: &[BufferCopy])
unsafe fn cmd_copy_buffer_to_image(&self,
command_buffer: CommandBuffer,
src_buffer: Buffer,
dst_image: Image,
dst_image_layout: ImageLayout,
regions: &[BufferImageCopy])
command_buffer: CommandBuffer,
src_buffer: Buffer,
dst_image: Image,
dst_image_layout: ImageLayout,
regions: &[BufferImageCopy])
unsafe fn cmd_copy_image(&self,
command_buffer: CommandBuffer,
src_image: Image,
src_image_layout: ImageLayout,
dst_image: Image,
dst_image_layout: ImageLayout,
regions: &[ImageCopy])
command_buffer: CommandBuffer,
src_image: Image,
src_image_layout: ImageLayout,
dst_image: Image,
dst_image_layout: ImageLayout,
regions: &[ImageCopy])
unsafe fn allocate_descriptor_sets(&self,
create_info: &DescriptorSetAllocateInfo)
-> VkResult<Vec<DescriptorSet>>
create_info: &DescriptorSetAllocateInfo)
-> VkResult<Vec<DescriptorSet>>
unsafe fn create_descriptor_set_layout(&self,
create_info: &DescriptorSetLayoutCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<DescriptorSetLayout>
create_info: &DescriptorSetLayoutCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<DescriptorSetLayout>
fn device_wait_idle(&self) -> VkResult<()>
unsafe fn create_descriptor_pool(&self,
create_info: &DescriptorPoolCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<DescriptorPool>
create_info: &DescriptorPoolCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<DescriptorPool>
unsafe fn reset_command_buffer(&self,
command_buffer: CommandBuffer,
flags: CommandBufferResetFlags)
-> VkResult<()>
command_buffer: CommandBuffer,
flags: CommandBufferResetFlags)
-> VkResult<()>
unsafe fn reset_fences(&self, fences: &[Fence]) -> VkResult<()>
unsafe fn cmd_bind_index_buffer(&self,
command_buffer: CommandBuffer,
buffer: Buffer,
offset: DeviceSize,
index_type: IndexType)
command_buffer: CommandBuffer,
buffer: Buffer,
offset: DeviceSize,
index_type: IndexType)
unsafe fn cmd_draw_indexed(&self,
command_buffer: CommandBuffer,
index_count: uint32_t,
instance_count: uint32_t,
first_index: uint32_t,
vertex_offset: int32_t,
first_instance: uint32_t)
command_buffer: CommandBuffer,
index_count: uint32_t,
instance_count: uint32_t,
first_index: uint32_t,
vertex_offset: int32_t,
first_instance: uint32_t)
unsafe fn cmd_bind_descriptor_sets(&self,
command_buffer: CommandBuffer,
pipeline_bind_point: PipelineBindPoint,
layout: PipelineLayout,
first_set: uint32_t,
descriptor_sets: &[DescriptorSet],
dynamic_offsets: &[uint32_t])
command_buffer: CommandBuffer,
pipeline_bind_point: PipelineBindPoint,
layout: PipelineLayout,
first_set: uint32_t,
descriptor_sets: &[DescriptorSet],
dynamic_offsets: &[uint32_t])
unsafe fn cmd_begin_render_pass(&self,
command_buffer: CommandBuffer,
create_info: &RenderPassBeginInfo,
contents: SubpassContents)
command_buffer: CommandBuffer,
create_info: &RenderPassBeginInfo,
contents: SubpassContents)
unsafe fn cmd_bind_pipeline(&self,
command_buffer: CommandBuffer,
pipeline_bind_point: PipelineBindPoint,
pipeline: Pipeline)
command_buffer: CommandBuffer,
pipeline_bind_point: PipelineBindPoint,
pipeline: Pipeline)
unsafe fn cmd_set_scissor(&self,
command_buffer: CommandBuffer,
scissors: &[Rect2D])
command_buffer: CommandBuffer,
scissors: &[Rect2D])
unsafe fn cmd_bind_vertex_buffers(&self,
command_buffer: CommandBuffer,
buffers: &[Buffer],
offsets: &DeviceSize)
command_buffer: CommandBuffer,
buffers: &[Buffer],
offsets: &DeviceSize)
unsafe fn cmd_end_render_pass(&self, command_buffer: CommandBuffer)
unsafe fn cmd_draw(&self,
command_buffer: CommandBuffer,
vertex_count: uint32_t,
instance_count: uint32_t,
first_vertex: uint32_t,
first_instance: uint32_t)
command_buffer: CommandBuffer,
vertex_count: uint32_t,
instance_count: uint32_t,
first_vertex: uint32_t,
first_instance: uint32_t)
unsafe fn cmd_set_viewport(&self,
command_buffer: CommandBuffer,
viewports: &[Viewport])
command_buffer: CommandBuffer,
viewports: &[Viewport])
unsafe fn create_semaphore(&self,
create_info: &SemaphoreCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Semaphore>
create_info: &SemaphoreCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Semaphore>
unsafe fn create_graphics_pipelines(&self,
pipeline_cache: PipelineCache,
create_infos: &[GraphicsPipelineCreateInfo],
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Vec<Pipeline>>
pipeline_cache: PipelineCache,
create_infos: &[GraphicsPipelineCreateInfo],
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Vec<Pipeline>>
unsafe fn create_buffer(&self,
create_info: &BufferCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Buffer>
create_info: &BufferCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Buffer>
unsafe fn create_pipeline_layout(&self,
create_info: &PipelineLayoutCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<PipelineLayout>
create_info: &PipelineLayoutCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<PipelineLayout>
unsafe fn map_memory<T>(&self,
memory: DeviceMemory,
offset: DeviceSize,
size: DeviceSize,
flags: MemoryMapFlags)
-> VkResult<&mut [T]>
memory: DeviceMemory,
offset: DeviceSize,
size: DeviceSize,
flags: MemoryMapFlags)
-> VkResult<&mut [T]>
unsafe fn unmap_memory(&self, memory: DeviceMemory)
unsafe fn create_framebuffer(&self,
create_info: &FramebufferCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Framebuffer>
create_info: &FramebufferCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Framebuffer>
unsafe fn get_device_queue(&self,
queue_family_index: uint32_t,
queue_index: uint32_t)
-> Queue
queue_family_index: uint32_t,
queue_index: uint32_t)
-> Queue
unsafe fn cmd_pipeline_barrier(&self,
command_buffer: CommandBuffer,
src_stage_mask: PipelineStageFlags,
dst_stage_mask: PipelineStageFlags,
dependency_flags: DependencyFlags,
memory_barriers: &[MemoryBarrier],
buffer_memory_barriers: &[BufferMemoryBarrier],
image_memory_barriers: &[ImageMemoryBarrier])
command_buffer: CommandBuffer,
src_stage_mask: PipelineStageFlags,
dst_stage_mask: PipelineStageFlags,
dependency_flags: DependencyFlags,
memory_barriers: &[MemoryBarrier],
buffer_memory_barriers: &[BufferMemoryBarrier],
image_memory_barriers: &[ImageMemoryBarrier])
unsafe fn create_render_pass(&self,
create_info: &RenderPassCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<RenderPass>
create_info: &RenderPassCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<RenderPass>
unsafe fn begin_command_buffer(&self,
command_buffer: CommandBuffer,
create_info: &CommandBufferBeginInfo)
-> VkResult<()>
command_buffer: CommandBuffer,
create_info: &CommandBufferBeginInfo)
-> VkResult<()>
unsafe fn end_command_buffer(&self,
command_buffer: CommandBuffer)
-> VkResult<()>
command_buffer: CommandBuffer)
-> VkResult<()>
unsafe fn wait_for_fences(&self,
fences: &[Fence],
wait_all: bool,
timeout: uint64_t)
-> VkResult<()>
fences: &[Fence],
wait_all: bool,
timeout: uint64_t)
-> VkResult<()>
unsafe fn queue_wait_idle(&self, queue: Queue) -> VkResult<()>
unsafe fn queue_submit(&self,
queue: Queue,
submits: &[SubmitInfo],
fence: Fence)
-> VkResult<()>
queue: Queue,
submits: &[SubmitInfo],
fence: Fence)
-> VkResult<()>
unsafe fn create_image_view(&self,
create_info: &ImageViewCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<ImageView>
create_info: &ImageViewCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<ImageView>
unsafe fn allocate_command_buffers(&self,
create_info: &CommandBufferAllocateInfo)
-> VkResult<Vec<CommandBuffer>>
create_info: &CommandBufferAllocateInfo)
-> VkResult<Vec<CommandBuffer>>
unsafe fn create_command_pool(&self,
create_info: &CommandPoolCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<CommandPool>
create_info: &CommandPoolCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<CommandPool>
unsafe fn create_image(&self,
create_info: &ImageCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Image>
create_info: &ImageCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Image>
fn get_image_memory_requirements(&self, image: Image) -> MemoryRequirements
fn get_buffer_memory_requirements(&self, buffer: Buffer) -> MemoryRequirements
unsafe fn allocate_memory(&self,
create_info: &MemoryAllocateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<DeviceMemory>
create_info: &MemoryAllocateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<DeviceMemory>
unsafe fn create_shader_module(&self,
create_info: &ShaderModuleCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<ShaderModule>
create_info: &ShaderModuleCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<ShaderModule>
unsafe fn create_fence(&self,
create_info: &FenceCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Fence>
create_info: &FenceCreateInfo,
allocation_callbacks: Option<&AllocationCallbacks>)
-> VkResult<Fence>
unsafe fn bind_buffer_memory(&self,
buffer: Buffer,
device_memory: DeviceMemory,
offset: DeviceSize)
-> VkResult<()>
buffer: Buffer,
device_memory: DeviceMemory,
offset: DeviceSize)
-> VkResult<()>
unsafe fn bind_image_memory(&self,
image: Image,
device_memory: DeviceMemory,
offset: DeviceSize)
-> VkResult<()>
image: Image,
device_memory: DeviceMemory,
offset: DeviceSize)
-> VkResult<()>