hxn-gpu-vulkan
Vulkan on Linux, Windows, Android and macOS: compute, rendering, explicit barriers and swapchains.
Classes
BufferMemory the CPU maps for as long as the buffer lives.CommandBufferRecords commands until aDevice.submit.DescriptorSetA descriptor set, written binding by binding before a command buffer binds it.DeviceA logical device and its queue; every other object comes from one.ImageA 2D image in device memory, with one view of all of it.ImageDescriptorInstanceA Vulkan instance: the loader, and the GPUs it finds.LayoutBindingOne binding of a descriptor set layout.PipelinePipelineLayoutSamplerSetLayoutOne descriptor set's bindings: one of hxnsl's bind groups.SetLayoutsThe descriptor set layouts of a pipeline, set 0 first.ShaderModuleShadersShaders from hxnsl, for Vulkan.SurfaceA window's Vulkan surface, which a swapchain presents to.SwapchainA window's images to render into and present, made for one size.VertexAttributeOne vertex attribute:locationis the shader's (hxnsl'sINPUT_<name>).VertexBindingOne vertex buffer binding: its stride in bytes, and whether it advances per instance.
Abstracts
AccessMemory access bits for a barrier, Vulkan's values, or-ed together.AddressModeBindPointBufferUsageDevice.createBufferusage bits, Vulkan's values.DescriptorTypeA descriptor's type, Vulkan's values.FilterFormatThe formats an image or vertex attribute can have, with Vulkan's values.ImageUsageImageDescriptor.usagebits, Vulkan's values.LayoutAn image layout, Vulkan's values.LoadOpShaderStageShader stage bits, Vulkan's values, or-ed together.StagePipeline stage bits for a barrier, Vulkan's values, or-ed together.Topology