laplaceliu/tycho_webgpu/types does not have a README file
pub(all) suberror WgpuError {
InitFailed(String)
DeviceFailed(String)
ShaderFailed(String)
PipelineFailed(String)
TextureFailed(String)
BufferFailed(String)
CommandFailed(String)
ReadbackFailed(String)
InvalidArgument(String)
}pub(all) struct BlendState {
src_color : BlendFactor
dst_color : BlendFactor
color_op : BlendOp
src_alpha : BlendFactor
dst_alpha : BlendFactor
alpha_op : BlendOp
}pub(all) struct DepthStencilState {
format : TextureFormat
depth_write : Bool
depth_compare : CompareOp
stencil : StencilState?
depth_bias : Int
depth_bias_slope : Double
}pub(all) struct SamplerDesc {
mag : Filter
min : Filter
mipmap : Filter
address : AddressMode
min_lod : Float
max_lod : Float
anisotropy : Float
compare : CompareOp?
}fn SamplerDesc::new(mag? : Filter, min? : Filter, mipmap? : Filter, address? : AddressMode, min_lod? : Float, max_lod? : Float, anisotropy? : Float, compare? : CompareOp) -> SamplerDescpub(all) struct StencilState {
front : StencilFaceState
back : StencilFaceState
read_mask : UInt
write_mask : UInt
}pub(all) struct VertexBufferLayout {
stride : Int
step_mode : StepMode
attributes : Array[VertexAttribute]
}fn VertexBufferLayout::new(stride : Int, attributes : Array[VertexAttribute], step_mode? : StepMode) -> VertexBufferLayoutfn 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)