hxn-gpu-webgpu
WebGPU in the browser, on hxcpp and Ash compiled to wasm: compute, rendering and the web page's canvas.
Classes
AdapterAGPUAdapter.BindGroupAGPUBindGroup.BindGroupEntriesThe resources of a bind group, by binding, beforeDevice.createBindGroupmakes it.BindGroupLayoutsThe bind group layouts of a pipeline, group 0 first.BufferAGPUBuffer.CommandEncoderAGPUCommandEncoder, recording untilDevice.submit.ComputePassAGPUComputePassEncoder.ComputePipelineAGPUComputePipeline.ConstantA pipeline-overridable constant: a WGSLoverrideby its name, as hxnsl'sCONST_keys give it.DeviceAGPUDeviceand its queue.GroupLayoutThe layout of one bind group.InstanceA WebGPU instance:navigator.gpu.LayoutEntryOne entry of a bind group layout.PipelineLayoutAGPUPipelineLayout.RenderPassAGPURenderPassEncoder.RenderPipelineAGPURenderPipeline.SamplerAGPUSampler.ShaderModuleAGPUShaderModuleof WGSL.ShadersShaders from hxnsl, for WebGPU.SurfaceThe web page's canvas.TextureA 2DGPUTextureof one level, with one view of all of it.VertexAttributeOne attribute of a vertex buffer.
Abstracts
AddressModeA sampler's address mode, webgpu.h's values.BindingKindWhat a bind group layout entry binds.BufferUsageGPUBufferUsagebits, webgpu.h's values, or-ed together.FilterA sampler's filter, webgpu.h's values.FormatA texture format, webgpu.h's values.SampleTypeA texture binding's sample type, webgpu.h's values.ShaderStageGPUShaderStagebits, which WebGPU and hxnsl'sLAYOUTshare.StorageAccessA storage texture binding's access, webgpu.h's values.TextureUsageGPUTextureUsagebits, webgpu.h's values, or-ed together.TopologyA render pipeline's primitive topology, webgpu.h's values.VertexFormatA vertex attribute's format, webgpu.h's values.ViewDimensionA texture binding's view dimension, webgpu.h's values.