mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement GPURenderPassEncoder
Add webidls for GPURenderPassEncoder and GPURenderEncoderBase and implement relevant methods.
This commit is contained in:
parent
e452570be0
commit
1d4efb48ba
11 changed files with 524 additions and 35 deletions
|
@ -155,6 +155,10 @@ pub enum WebGPURequest {
|
|||
command_encoder_id: id::CommandEncoderId,
|
||||
pass_data: Vec<u8>,
|
||||
},
|
||||
RunRenderPass {
|
||||
command_encoder_id: id::CommandEncoderId,
|
||||
pass_data: Vec<u8>,
|
||||
},
|
||||
Submit {
|
||||
queue_id: id::QueueId,
|
||||
command_buffers: Vec<id::CommandBufferId>,
|
||||
|
@ -586,6 +590,16 @@ impl WGPU {
|
|||
&pass_data
|
||||
));
|
||||
},
|
||||
WebGPURequest::RunRenderPass {
|
||||
command_encoder_id,
|
||||
pass_data,
|
||||
} => {
|
||||
let global = &self.global;
|
||||
gfx_select!(command_encoder_id => global.command_encoder_run_render_pass(
|
||||
command_encoder_id,
|
||||
&pass_data
|
||||
));
|
||||
},
|
||||
WebGPURequest::Submit {
|
||||
queue_id,
|
||||
command_buffers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue