laplaceliu/tycho_webgpu/native does not have a README file
pub struct BindGroup {
// private fields
}pub struct Buffer {
// private fields
}pub struct CommandList {
// private fields
}fn CommandList::begin_pass(self : CommandList, target : Texture, load_op? : LoadOp, r? : Double, g? : Double, b? : Double, a? : Double, depth? : Texture?, depth_load_op? : LoadOp, depth_clear? : Double, resolve? : Texture?) -> Unit raise WgpuErrorfn CommandList::draw_indexed(self : CommandList, index_count : Int, instances? : Int, first_index? : Int, base_vertex? : Int, first_instance? : Int) -> Unitfn CommandList::set_bind_group(self : CommandList, index : Int, group : BindGroup) -> Unit raise WgpuErrorfn CommandList::set_index(self : CommandList, buffer : Buffer, format : IndexFormat, offset? : Int, size? : Int) -> Unit raise WgpuErrorfn CommandList::set_vertex(self : CommandList, slot : Int, buffer : Buffer, offset? : Int) -> Unit raise WgpuErrorpub struct Device {
// private fields
}fn Device::create_render_pipeline(self : Device, vs : Shader, fs : Shader?, vs_entry? : String, fs_entry? : String, format? : TextureFormat, topology? : Topology, vertex_layouts? : Array[VertexBufferLayout], samples? : Int, depth_format? : TextureFormat?, depth_write? : Bool, depth_compare? : CompareOp, depth_bias? : Int, depth_bias_slope? : Double) -> Pipeline raise WgpuErrorfn Device::create_texture(self : Device, width : Int, height : Int, format? : TextureFormat, usage? : TextureUsage, samples? : Int) -> Texture raise WgpuErrorfn Device::create_texture_with_data(self : Device, width : Int, height : Int, format? : TextureFormat, usage? : TextureUsage, data? : Bytes) -> Texture raise WgpuErrorpub struct Pipeline {
// private fields
}pub struct Sampler {
// private fields
}pub struct Shader {
// private fields
}pub struct Surface {
// private fields
}fn Surface::configure(self : Surface, device : Device, width : Int, height : Int, format : TextureFormat, present_mode? : PresentMode, copy_src? : Bool) -> Unit raise WgpuErrorpub struct Texture {
// private fields
}fn is_spirv_words(words : FixedArray[UInt]) -> Boolfn wgsl_from_words(words : FixedArray[UInt]) -> Stringfn wgsl_words(source : String) -> FixedArray[UInt]Install
Download zipPure-MoonBit WebGPU bindings over the standard webgpu.h C ABI (runtime-loaded wgpu-native / Dawn, zero link flags)