hxn

hxn-gpu-d3d12

Direct3D 12 on Windows: compute, rendering, textures and swapchains, with transitions or enhanced barriers.

Classes

  • BufferA buffer.
  • CommandListRecords commands until a Device.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.
  • PipelineState
  • RootParameterOne root parameter: a root descriptor at register and space (hxnsl's HLSL_SLOTS), or a descriptor table of ranges.
  • RootRangecount descriptors from register register of space, offset descriptors into the table.
  • RootSignature
  • ShadersShaders 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.
  • TextureDescriptor
  • VertexAttributeOne vertex attribute: location is the shader's (hxnsl's INPUT_<name>), its HLSL semantic LOC<location>.

Abstracts

  • AccessEnhanced barrier access bits, Direct3D 12's values, or-ed together.
  • AddressMode
  • BarrierSyncEnhanced barrier sync bits, Direct3D 12's values, or-ed together.
  • Filter
  • FormatA 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.usage bits, Direct3D 12's resource flags.
  • Topology
  • Visibility