mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 00:41:07 +01:00
e578fce5cdf446ed15a7174855b6c90df0a0a26c
615: Update web bindings r=kvark a=grovesNL - Use newer buffer mapping API everywhere and remove polyfill. - There's a weird thing here where we hand out `&[u8]`/`&mut [u8]`s for users to write into, but later have to copy back into the browser-provided `ArrayBuffer`. It's done during `Drop` here but open to some other ideas. - Add in `web_sys::GpuTextureComponentType::DepthComparison` though it looks like we don't have it in Gecko yet: > GPUDevice.createBindGroupLayout: 'depth-comparison' (value of 'textureComponentType' member of GPUBindGroupLayoutEntry) is not a valid value for enumeration GPUTextureComponentType. - `mipmap` fails because `layout` is still required in Gecko: > GPUDevice.createRenderPipeline: Missing required 'layout' member of GPUPipelineDescriptorBase. - Add in some parts that we can implement now, including labels, debug markers, render bundles, and `get_bind_group_layout` Co-authored-by: Joshua Groves <josh@joshgroves.com>
Languages
Rust
78.5%
WGSL
13%
GLSL
3.1%
Metal
2.8%
HLSL
2.3%
Other
0.2%