Struct gfx_device_vulkan::CommandBuffer
[−]
[src]
pub struct CommandBuffer { /* fields omitted */ }
Methods
impl Buffer
[src]
fn image_barrier(
&mut self,
image: Image,
aspect: ImageAspectFlags,
old_layout: ImageLayout,
new_layout: ImageLayout
)
&mut self,
image: Image,
aspect: ImageAspectFlags,
old_layout: ImageLayout,
new_layout: ImageLayout
)
Trait Implementations
impl Drop for Buffer
[src]
impl Buffer<Resources> for Buffer
[src]
fn reset(&mut self)
Reset the command buffer contents, retain the allocated storage
fn bind_pipeline_state(&mut self, pso: Pipeline)
Bind a pipeline state object
fn bind_vertex_buffers(&mut self, _: VertexBufferSet<Resources>)
Bind a complete set of vertex buffers
fn bind_constant_buffers(&mut self, _: &[ConstantBufferParam<Resources>])
Bind a complete set of constant buffers
fn bind_global_constant(&mut self, _: Location, _: UniformValue)
Bind a global constant
fn bind_resource_views(&mut self, _: &[ResourceViewParam<Resources>])
Bind a complete set of shader resource views
fn bind_unordered_views(&mut self, _: &[UnorderedViewParam<Resources>])
Bind a complete set of unordered access views
fn bind_samplers(&mut self, _: &[SamplerParam<Resources>])
Bind a complete set of samplers
fn bind_pixel_targets(&mut self, pts: PixelTargetSet<Resources>)
Bind a complete set of pixel targets, including multiple colors views and an optional depth/stencil view. Read more
fn bind_index(&mut self, _: Buffer, _: IndexType)
Bind an index buffer
fn set_scissor(&mut self, _: Rect)
Set scissor rectangle
fn set_ref_values(&mut self, _: RefValues)
Set reference values for the blending and stencil front/back
fn copy_buffer(
&mut self,
src: Buffer,
dst: Buffer,
src_offset_bytes: usize,
dst_offset_bytes: usize,
size_bytes: usize
)
&mut self,
src: Buffer,
dst: Buffer,
src_offset_bytes: usize,
dst_offset_bytes: usize,
size_bytes: usize
)
Copy part of a buffer to another
fn update_buffer(&mut self, _: Buffer, _: &[u8], _: usize)
Update a vertex/index/uniform buffer
fn update_texture(
&mut self,
_: Texture,
_: Kind,
_: Option<CubeFace>,
_: &[u8],
_: RawImageInfo
)
&mut self,
_: Texture,
_: Kind,
_: Option<CubeFace>,
_: &[u8],
_: RawImageInfo
)
Update a texture
fn generate_mipmap(&mut self, _: TextureView)
fn clear_color(&mut self, tv: TextureView, color: ClearColor)
Clear color target
fn clear_depth_stencil(
&mut self,
tv: TextureView,
depth: Option<Depth>,
stencil: Option<Stencil>
)
&mut self,
tv: TextureView,
depth: Option<Depth>,
stencil: Option<Stencil>
)
fn call_draw(
&mut self,
_: VertexCount,
_: VertexCount,
_: Option<InstanceParams>
)
&mut self,
_: VertexCount,
_: VertexCount,
_: Option<InstanceParams>
)
Draw a primitive
fn call_draw_indexed(
&mut self,
_: VertexCount,
_: VertexCount,
_: VertexCount,
_: Option<InstanceParams>
)
&mut self,
_: VertexCount,
_: VertexCount,
_: VertexCount,
_: Option<InstanceParams>
)
Draw a primitive with index buffer