hxn-gpu-metal
Metal on macOS and iOS: compute and render passes, with hxnsl shaders compiled into Metal libraries.
Classes
BufferGPU memory the CPU can read and write.CommandBufferCommands recorded through its encoders, then committed to the GPU.CommandQueueComputeEncoderRecords compute commands.ComputePipelineDeviceA GPU, and the maker of every other Metal object.DrawableFunctionLayerA CAMetalLayer on a window's view, whose drawables a render pass targets.LibraryCompiled shader functions.RenderEncoderRecords draw commands for one render pass.RenderPipelineSamplerSamplerDescriptorShadersShaders from hxnsl, for Metal.TextureA 2D texture.TextureDescriptorVertexAttributeOne vertex attribute:locationis the shader's (hxnsl'sINPUT_<name>),bufferthe argument index its vertex buffer is bound at.VertexLayoutThe layout of one vertex buffer: its stride in bytes, and whether it advances per instance.
Abstracts
AddressModeFilterLoadActionPixelFormatThe pixel formats a texture or render target can have, with Metal's values.PrimitiveStorageModeWhere a texture's memory lives.TextureUsageHow a texture is used, asTextureDescriptor.usagebits.VertexFormatA vertex attribute's format, with Metal's values.