minwebgpu 0.2.0

Minimal WebGPU toolkit for modern graphics programming with compute shaders and rendering pipelines
/// Internal namespace.
mod private
{
  use crate::*;

  /// Creates a new bind group descriptor builder.
  pub fn desc< 'a >( layout : &'a web_sys::GpuBindGroupLayout ) -> BindGroupDescriptor< 'a >
  {
    BindGroupDescriptor::new( layout )
  }

  /// Creates a new GPU bind group.
  pub fn create( device : &web_sys::GpuDevice, desc : &web_sys::GpuBindGroupDescriptor ) -> web_sys::GpuBindGroup
  {
    device.create_bind_group( desc )
  }
}

crate::mod_interface!
{

  own use
  {
    desc,
    create
  };

}