mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Update wgpu-core and wgpu-types
This commit is contained in:
parent
1d4efb48ba
commit
3b5ede153d
18 changed files with 58 additions and 90 deletions
|
@ -37,8 +37,8 @@ impl GPUCommandBuffer {
|
|||
channel: WebGPU,
|
||||
command_buffer: WebGPUCommandBuffer,
|
||||
buffers: HashSet<DomRoot<GPUBuffer>>,
|
||||
) -> GPUCommandBuffer {
|
||||
GPUCommandBuffer {
|
||||
) -> Self {
|
||||
Self {
|
||||
channel,
|
||||
reflector_: Reflector::new(),
|
||||
label: DomRefCell::new(None),
|
||||
|
@ -52,7 +52,7 @@ impl GPUCommandBuffer {
|
|||
channel: WebGPU,
|
||||
command_buffer: WebGPUCommandBuffer,
|
||||
buffers: HashSet<DomRoot<GPUBuffer>>,
|
||||
) -> DomRoot<GPUCommandBuffer> {
|
||||
) -> DomRoot<Self> {
|
||||
reflect_dom_object(
|
||||
Box::new(GPUCommandBuffer::new_inherited(
|
||||
channel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue