hxn-gpu-d3d12
Direct3D 12 on Windows: compute, rendering, textures and swapchains, with transitions or enhanced barriers.
Classes
BufferA buffer.CommandListRecords commands until aDevice.execute.DescriptorHeapA shader-visible descriptor heap, written descriptor by descriptor.DeviceA device and its direct queue; every other object comes from one.FactoryThe DXGI factory: the adapters, WARP included.PipelineStateRootParameterOne root parameter: a root descriptor atregisterandspace(hxnsl'sHLSL_SLOTS), or a descriptor table ofranges.RootRangecountdescriptors from registerregisterofspace,offsetdescriptors into the table.RootSignatureShadersShaders from hxnsl, for Direct3D 12.SwapchainA swap chain on a window: its buffers are render targets, presented in turn.TextureA 2D texture in the default heap.TextureDescriptorVertexAttributeOne vertex attribute:locationis the shader's (hxnsl'sINPUT_<name>), its HLSL semanticLOC<location>.
Abstracts
AccessEnhanced barrier access bits, Direct3D 12's values, or-ed together.AddressModeBarrierSyncEnhanced barrier sync bits, Direct3D 12's values, or-ed together.FilterFormatA texture or vertex attribute format, DXGI's values.HeapWhere a buffer's memory is: GPU-only, CPU-written for the GPU to read, or GPU-written for the CPU to read.HeapKindA shader-visible descriptor heap's kind.LayoutAn enhanced barrier texture layout, Direct3D 12's values.ParameterKindA root parameter's kind: a descriptor table, or a root descriptor for a buffer.RangeKindWhat a descriptor range holds.StateResource state bits, Direct3D 12's values, or-ed together.TextureUsageTextureDescriptor.usagebits, Direct3D 12's resource flags.TopologyVisibility