Struct asche::GraphicsCommandEncoder [−][src]
pub struct GraphicsCommandEncoder<'a> { /* fields omitted */ }
Expand description
Used to encode command for a graphics command buffer.
Implementations
pub unsafe fn begin_render_pass(
&self,
swapchain: &mut Swapchain,
render_pass: &RenderPass,
color_attachments: &[RenderPassColorAttachmentDescriptor],
depth_attachment: Option<RenderPassDepthAttachmentDescriptor>,
extent: Extent2D
) -> Result<RenderPassEncoder<'_>, AscheError>
pub unsafe fn begin_render_pass(
&self,
swapchain: &mut Swapchain,
render_pass: &RenderPass,
color_attachments: &[RenderPassColorAttachmentDescriptor],
depth_attachment: Option<RenderPassDepthAttachmentDescriptor>,
extent: Extent2D
) -> Result<RenderPassEncoder<'_>, AscheError>
Returns a render pass encoder. Drop once finished recording.
Sets the viewport and the scissor rectangle.
Binds a pipeline. Vulkan Manual Page
Binds a raytracing pipeline. Vulkan Manual Page
pub unsafe fn bind_descriptor_set(
&self,
pipeline_bind_point: PipelineBindPoint,
layout: PipelineLayout,
set: u32,
descriptor_sets: &[DescriptorSet],
dynamic_offsets: &[u32]
)
pub unsafe fn bind_descriptor_set(
&self,
pipeline_bind_point: PipelineBindPoint,
layout: PipelineLayout,
set: u32,
descriptor_sets: &[DescriptorSet],
dynamic_offsets: &[u32]
)
Binds descriptor sets. Vulkan Manual Page
pub unsafe fn push_constants(
&self,
layout: PipelineLayout,
stage_flags: ShaderStageFlags,
offset: u32,
constants: &[u8]
) -> Result<(), AscheError>
pub unsafe fn push_constants(
&self,
layout: PipelineLayout,
stage_flags: ShaderStageFlags,
offset: u32,
constants: &[u8]
) -> Result<(), AscheError>
Update the values of push constants. Vulkan Manual Page
Set the dynamic stack size for a ray tracing pipeline Vulkan Manual Page
pub unsafe 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
)
pub unsafe 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
)
Initialize an indirect ray tracing dispatch. Vulkan Manual Page
pub unsafe 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
)
pub unsafe 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
)
Initialize a ray tracing dispatch. Vulkan Manual Page
pub unsafe fn reset_query_pool(
&self,
query_pool: QueryPool,
first_query: u32,
query_count: u32
)
pub unsafe fn reset_query_pool(
&self,
query_pool: QueryPool,
first_query: u32,
query_count: u32
)
Reset queries in a query pool. Vulkan Manual Page
pub unsafe fn clear_color_image(
&self,
image: Image,
image_layout: ImageLayout,
color: &ClearColorValue,
ranges: &[ImageSubresourceRangeBuilder<'_>]
)
pub unsafe fn clear_color_image(
&self,
image: Image,
image_layout: ImageLayout,
color: &ClearColorValue,
ranges: &[ImageSubresourceRangeBuilder<'_>]
)
Clear regions of a color image. Vulkan Manual Page
Trait Implementations
unsafe fn copy_buffer(
&self,
src_buffer: Buffer,
dst_buffer: Buffer,
src_offset: DeviceSize,
dst_offset: DeviceSize,
size: DeviceSize
)
unsafe fn copy_buffer(
&self,
src_buffer: Buffer,
dst_buffer: Buffer,
src_offset: DeviceSize,
dst_offset: DeviceSize,
size: DeviceSize
)
Copies data between two buffer.
unsafe fn copy_buffer_to_image(
&self,
src_buffer: Buffer,
dst_image: Image,
dst_image_layout: ImageLayout,
region: BufferImageCopyBuilder<'_>
)
unsafe fn copy_buffer_to_image(
&self,
src_buffer: Buffer,
dst_image: Image,
dst_image_layout: ImageLayout,
region: BufferImageCopyBuilder<'_>
)
Copies data from a buffer to an image.
Insert a memory dependency.
unsafe fn begin_debug_utils_label(
&self,
label: &str,
color: [f32; 4]
) -> Result<(), AscheError>
unsafe fn begin_debug_utils_label(
&self,
label: &str,
color: [f32; 4]
) -> Result<(), AscheError>
Insert a memory dependency.
Close a command buffer label region.
unsafe fn insert_debug_utils_label(
&self,
label: &str,
color: [f32; 4]
) -> Result<(), AscheError>
unsafe fn insert_debug_utils_label(
&self,
label: &str,
color: [f32; 4]
) -> Result<(), AscheError>
Insert a label into a command buffer.