mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Initial implementation of GPUBindGroup for WebGPU
Added WebIDL bindings for `GPUBindGroup`. Implemented the `createBindGroup` function of `GPUDevice`
This commit is contained in:
parent
2b77a992db
commit
3cefc5f3a1
11 changed files with 227 additions and 9 deletions
|
@ -79,6 +79,20 @@ impl GPUBuffer {
|
|||
}
|
||||
}
|
||||
|
||||
impl GPUBuffer {
|
||||
pub fn id(&self) -> WebGPUBuffer {
|
||||
self.buffer
|
||||
}
|
||||
|
||||
pub fn size(&self) -> GPUBufferSize {
|
||||
self.size
|
||||
}
|
||||
|
||||
pub fn usage(&self) -> u32 {
|
||||
self.usage
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for GPUBuffer {
|
||||
fn drop(&mut self) {
|
||||
self.Destroy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue