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 GPU pipeline layout.
  pub fn create
  ( 
    device : &web_sys::GpuDevice, 
    desc : &web_sys::GpuPipelineLayoutDescriptor 
  ) -> web_sys::GpuPipelineLayout
  {
    device.create_pipeline_layout( desc )
  }

  /// Creates a new pipeline layout descriptor builder.
  pub fn desc< 'a >() -> PipelineLayoutDescriptor< 'a >
  {
    PipelineLayoutDescriptor::new()
  }
}

crate::mod_interface!
{
  own use
  {
    desc,
    create
  };
}