Struct asche::GraphicsCommandEncoder [−][src]
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]
&self,
src_buffer: Buffer,
dst_buffer: Buffer,
src_offset: DeviceSize,
dst_offset: DeviceSize,
size: DeviceSize
)
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]
&self,
src_buffer: Buffer,
dst_image: Image,
dst_image_layout: ImageLayout,
region: BufferImageCopyBuilder<'_>
)
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]
&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.
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]
&self,
pipeline_bind_point: PipelineBindPoint,
layout: PipelineLayout,
set: u32,
descriptor_sets: &[DescriptorSet],
dynamic_offsets: &[u32]
)
Binds descriptor sets. Vulkan Manual Page
pub fn push_constants(
&self,
layout: PipelineLayout,
stage_flags: ShaderStageFlags,
offset: u32,
constants: &[u8]
)
[src]
&self,
layout: PipelineLayout,
stage_flags: ShaderStageFlags,
offset: u32,
constants: &[u8]
)
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]
&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 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]
&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 fn reset_query_pool(
&self,
query_pool: QueryPool,
first_query: u32,
query_count: u32
)
[src]
&self,
query_pool: QueryPool,
first_query: u32,
query_count: u32
)
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]
&self,
image: Image,
image_layout: ImageLayout,
color: &ClearColorValue,
ranges: &[ImageSubresourceRangeBuilder<'_>]
)
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
impl<'a> RefUnwindSafe for GraphicsCommandEncoder<'a>
impl<'a> Send for GraphicsCommandEncoder<'a>
impl<'a> Sync for GraphicsCommandEncoder<'a>
impl<'a> Unpin for GraphicsCommandEncoder<'a>
impl<'a> UnwindSafe for GraphicsCommandEncoder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,