Initial implementation of GPUBindGroup for WebGPU

Added WebIDL bindings for `GPUBindGroup`.
Implemented the `createBindGroup` function of `GPUDevice`
This commit is contained in:
Istvan Miklos 2020-01-23 12:54:42 +01:00
parent 2b77a992db
commit 3cefc5f3a1
11 changed files with 227 additions and 9 deletions

View file

@ -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()