Struct asche::GraphicsCommandEncoder[][src]

pub struct GraphicsCommandEncoder<'a> { /* fields omitted */ }

Used to encode command for a graphics command buffer.

Implementations

impl<'a> GraphicsCommandEncoder<'a>[src]

pub fn copy_buffer(
    &self,
    src_buffer: Buffer,
    dst_buffer: Buffer,
    src_offset: DeviceSize,
    dst_offset: DeviceSize,
    size: DeviceSize
)
[src]

Copies data between two buffer.

pub fn copy_buffer_to_image(
    &self,
    src_buffer: Buffer,
    dst_image: Image,
    dst_image_layout: ImageLayout,
    region: BufferImageCopyBuilder<'_>
)
[src]

Copies data from a buffer to an image.

pub fn begin_render_pass(
    &self,
    swapchain: &mut Swapchain,
    render_pass: &RenderPass,
    color_attachments: &[RenderPassColorAttachmentDescriptor],
    depth_attachment: Option<RenderPassDepthAttachmentDescriptor>,
    extent: Extent2D
) -> Result<RenderPassEncoder<'_>, AscheError>
[src]

Returns a render pass encoder. Drop once finished recording.

pub fn set_viewport_and_scissor(&self, rect: Rect2DBuilder<'_>)[src]

Sets the viewport and the scissor rectangle.

pub fn bind_pipeline(&self, graphics_pipeline: &GraphicsPipeline)[src]

Binds a pipeline. Vulkan Manual Page

pub fn bind_raytrace_pipeline(&self, raytracing_pipeline: &RayTracingPipeline)[src]

Binds a raytracing pipeline. Vulkan Manual Page

pub fn bind_descriptor_set(
    &self,
    pipeline_bind_point: PipelineBindPoint,
    layout: PipelineLayout,
    set: u32,
    descriptor_sets: &[DescriptorSet],
    dynamic_offsets: &[u32]
)
[src]

Binds descriptor sets. Vulkan Manual Page

pub fn push_constants(
    &self,
    layout: PipelineLayout,
    stage_flags: ShaderStageFlags,
    offset: u32,
    constants: &[u8]
)
[src]

Update the values of push constants. Vulkan Manual Page

pub fn pipeline_barrier2(&self, dependency_info: &DependencyInfoKHR)[src]

Insert a memory dependency. Vulkan Manual Page

pub fn set_ray_tracing_pipeline_stack_size(&self, stack_size: u32)[src]

Set the dynamic stack size for a ray tracing pipeline Vulkan Manual Page

pub fn trace_rays_indirect_khr(
    &self,
    raygen_shader_binding_table: &StridedDeviceAddressRegionKHR,
    miss_shader_binding_table: &StridedDeviceAddressRegionKHR,
    hit_shader_binding_table: &StridedDeviceAddressRegionKHR,
    callable_shader_binding_table: &StridedDeviceAddressRegionKHR,
    indirect_device_address: DeviceAddress
)
[src]

Initialize an indirect ray tracing dispatch. Vulkan Manual Page

pub fn trace_rays_khr(
    &self,
    raygen_shader_binding_table: &StridedDeviceAddressRegionKHR,
    miss_shader_binding_table: &StridedDeviceAddressRegionKHR,
    hit_shader_binding_table: &StridedDeviceAddressRegionKHR,
    callable_shader_binding_table: &StridedDeviceAddressRegionKHR,
    width: u32,
    height: u32,
    depth: u32
)
[src]

Initialize a ray tracing dispatch. Vulkan Manual Page

pub fn reset_query_pool(
    &self,
    query_pool: QueryPool,
    first_query: u32,
    query_count: u32
)
[src]

Reset queries in a query pool. Vulkan Manual Page

pub fn clear_color_image(
    &self,
    image: Image,
    image_layout: ImageLayout,
    color: &ClearColorValue,
    ranges: &[ImageSubresourceRangeBuilder<'_>]
)
[src]

Clear regions of a color image. Vulkan Manual Page

Trait Implementations

impl<'a> Debug for GraphicsCommandEncoder<'a>[src]

impl<'a> Drop for GraphicsCommandEncoder<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.