hxn-gpu
One GPU API over every hxn GPU driver, with features and limits per device and a default backend per platform.
Classes
BindGroupThe buffers, textures and samplers for one bind group of a shader, as itsLAYOUTdescribes them.BufferGPU memory: vertices, indices, uniforms or storage.CommandEncoderRecords passes and copies forGpuDevice.submit.ComputePassComputePipelineDefaultLimitsGpuDeviceA GPU device on one backend, opened withGpuDevice.open.GpuSurfaceA window or the web page's canvas, which a device renders frames into and presents.PipelineBase class for compute and render pipelines, which compile a shader's entry points for the device.RenderPassRenderPipelineResourceBase class for objects a device creates.SamplerHow a shader reads a texture.ShaderModuleAn hxnsl shader loaded by the device's driver.SurfaceTargetsTextureA 2D image of one mip level.
Interfaces
ShaderAn hxnsl shader for hxn-gpu.
Enums
CommandOne command recorded in a pass.StepOne step of a submission.SurfaceTargetWhere a surface presents: a native window, by the platform code and raw handles hxn-window'sWindow.platform()andWindow.raw(0..3)return, or the web page's canvas.
Abstracts
AddressModeWhat a sampler reads outside a texture's edges.BackendThe driver a device runs on.BufferUsageHow a buffer is used, combined with|.FeatureA capability that only some backends support.FeaturesA set of features.FilterHow a sampler filters texels.IndexFormatThe type of an index buffer's indices.ShaderSourceA shader forGpuDevice.createShader: an hxnsl shader class that implementshxn.gpu.Shader, such asdevice.createShader(Tinted), or itsShaderCode.TextureFormatA texture's pixel format.TextureUsageHow a texture is used, combined with|.TopologyHow a render pipeline assembles vertices into primitives.VertexFormatThe type of one vertex attribute.
Typedefs
BindGroupDescriptorBindGroupEntryBufferDescriptorColorComputePipelineDescriptorLimitsSize and count limits for a device.NativeWindowA window with hxn-window's surface handles, such ashxn.window.Window.OpenOptionsRenderPipelineDescriptorSamplerDescriptorShaderCodeThe code and tables an hxnsl shader class carries for the compiled-in backends.TextureDescriptorVertexAttributeVertexBufferLayout