TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::d3d12::D3D12CommandList Class Referencefinal

#include <gui_core/graphics/d3d12/d3d12_rhi.h>

Inheritance diagram for tachyon::d3d12::D3D12CommandList:

Public Member Functions

 D3D12CommandList (D3D12GraphicsContext::Impl &device, ID3D12GraphicsCommandList *list, FrameArena &arena)
D3D12_GPU_VIRTUAL_ADDRESS Push (const void *data, size_t bytes, size_t alignment)
 Writes bytes into the arena, alignment apart; the GPU address of the copy, or 0.
void SetSamplerTable (D3D12_GPU_VIRTUAL_ADDRESS table)
 The per-image sampler table (t7) every draw of the frame binds.
void DrawPrimitives (const RHI::GpuPipeline &pipeline, const GPUDrawPushConstants &pushConstants, uint32_t primitiveCount, uint32_t firstPrimitive, PrimitiveShape shape, std::span< const std::byte > primitives) override
 Binds the pipeline and the GUI image set, pushes the constants and draws primitiveCount primitives starting at firstPrimitive, each as shape says; the vertex shader builds the vertices from the primitive.
void UploadTransientBuffers (std::span< const RHI::UploadRequest > requests, std::span< DeviceAddress > addresses) override
RHI::ResidentBufferId UploadResidentBuffers (std::span< const RHI::UploadRequest > requests, std::span< DeviceAddress > addresses) override
RHI::ResidentState ResidentBufferState (RHI::ResidentBufferId id) const override
void ReleaseResidentBuffer (RHI::ResidentBufferId id) override
 Frees the buffer once no frame in flight reads it; an unknown id does nothing.
Public Member Functions inherited from tachyon::RHI::RenderCommandList
virtual ~RenderCommandList ()=default
virtual void UploadTransientBuffers (std::span< const UploadRequest > requests, std::span< DeviceAddress > addresses)=0
 Copies a batch of transient data into storage that remains valid until this command list's frame fence signals.
virtual ResidentBufferId UploadResidentBuffers (std::span< const UploadRequest > requests, std::span< DeviceAddress > addresses)=0
 Copies a batch of data into GPU memory that stays until released, for data drawn again over many frames (a cached scope's primitives).

Constructor & Destructor Documentation

◆ D3D12CommandList()

tachyon::d3d12::D3D12CommandList::D3D12CommandList ( D3D12GraphicsContext::Impl & device,
ID3D12GraphicsCommandList * list,
FrameArena & arena )
inline

Member Function Documentation

◆ Push()

D3D12_GPU_VIRTUAL_ADDRESS tachyon::d3d12::D3D12CommandList::Push ( const void * data,
size_t bytes,
size_t alignment )

Writes bytes into the arena, alignment apart; the GPU address of the copy, or 0.

◆ SetSamplerTable()

void tachyon::d3d12::D3D12CommandList::SetSamplerTable ( D3D12_GPU_VIRTUAL_ADDRESS table)
inline

The per-image sampler table (t7) every draw of the frame binds.

◆ DrawPrimitives()

void tachyon::d3d12::D3D12CommandList::DrawPrimitives ( const RHI::GpuPipeline & pipeline,
const GPUDrawPushConstants & pushConstants,
uint32_t primitiveCount,
uint32_t firstPrimitive,
PrimitiveShape shape,
std::span< const std::byte > primitives )
overridevirtual

Binds the pipeline and the GUI image set, pushes the constants and draws primitiveCount primitives starting at firstPrimitive, each as shape says; the vertex shader builds the vertices from the primitive.

primitives are those primitives as the CPU wrote them, for a backend that binds only the images a draw reads (ImageBatcher); the others don't need them.

Implements tachyon::RHI::RenderCommandList.

◆ UploadTransientBuffers()

void tachyon::d3d12::D3D12CommandList::UploadTransientBuffers ( std::span< const RHI::UploadRequest > requests,
std::span< DeviceAddress > addresses )
override

◆ UploadResidentBuffers()

RHI::ResidentBufferId tachyon::d3d12::D3D12CommandList::UploadResidentBuffers ( std::span< const RHI::UploadRequest > requests,
std::span< DeviceAddress > addresses )
override

◆ ResidentBufferState()

RHI::ResidentState tachyon::d3d12::D3D12CommandList::ResidentBufferState ( RHI::ResidentBufferId id) const
overridevirtual

◆ ReleaseResidentBuffer()

void tachyon::d3d12::D3D12CommandList::ReleaseResidentBuffer ( RHI::ResidentBufferId id)
overridevirtual

Frees the buffer once no frame in flight reads it; an unknown id does nothing.

Implements tachyon::RHI::RenderCommandList.


The documentation for this class was generated from the following file: