pub trait RenderCommand {
// Required methods
fn encode_compute_pass_command(&self, cpass: &mut ComputePass<'_>);
fn encode_render_pass_command(&self, rpass: &mut RenderPass<'_>);
fn encode_render_command(
&self,
ctx: &WgpuContext,
pipelines: &mut PipelinesStorage,
encoder: &mut CommandEncoder,
uniforms_bind_group: &BindGroup,
render_textures: &RenderTextures,
profiler: &mut GpuProfiler,
);
// Provided method
fn debug(&self, _ctx: &WgpuContext) { ... }
}Expand description
The RenderCommand encodes the commands.
Required Methods§
Sourcefn encode_compute_pass_command(&self, cpass: &mut ComputePass<'_>)
fn encode_compute_pass_command(&self, cpass: &mut ComputePass<'_>)
Encode the compute pass command
Sourcefn encode_render_pass_command(&self, rpass: &mut RenderPass<'_>)
fn encode_render_pass_command(&self, rpass: &mut RenderPass<'_>)
Encode the render pass command
Sourcefn encode_render_command(
&self,
ctx: &WgpuContext,
pipelines: &mut PipelinesStorage,
encoder: &mut CommandEncoder,
uniforms_bind_group: &BindGroup,
render_textures: &RenderTextures,
profiler: &mut GpuProfiler,
)
fn encode_render_command( &self, ctx: &WgpuContext, pipelines: &mut PipelinesStorage, encoder: &mut CommandEncoder, uniforms_bind_group: &BindGroup, render_textures: &RenderTextures, profiler: &mut GpuProfiler, )
Encode the render command
Provided Methods§
Sourcefn debug(&self, _ctx: &WgpuContext)
fn debug(&self, _ctx: &WgpuContext)
Debug