Skip to content

ludus::graphics::rhi::ComputeWorkloadKernel

Ludus Wiki · API overview · Browse API

Struct

One independent dispatch; dependent kernels occupy distinct ordered passes.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

#include <ludus/graphics/rhi/compute_workload.hpp>
struct ludus::graphics::rhi::ComputeWorkloadKernel final

Fields

NameOrNull

const char* ludus::graphics::rhi::ComputeWorkloadKernel::NameOrNull = nullptr
Required nonempty diagnostic name, at most 63 UTF-8 bytes; copied.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

Shader

RasterShaderDescription ludus::graphics::rhi::ComputeWorkloadKernel::Shader {}
Cooked Compute artifact with storage-only reflected bindings.

Related types: RasterShaderDescription

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

Bindings

foundation::BorrowedView<const ComputeWorkloadBinding> ludus::graphics::rhi::ComputeWorkloadKernel::Bindings
At most sixteen; borrowed until Initialize returns.

Related types: foundation::BorrowedView · ComputeWorkloadBinding

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

GroupsX

foundation::uint32 ludus::graphics::rhi::ComputeWorkloadKernel::GroupsX = 1
Positive workgroup count along X, bounded by device capability.

Related types: foundation::uint32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

GroupsY

foundation::uint32 ludus::graphics::rhi::ComputeWorkloadKernel::GroupsY = 1
Positive workgroup count along Y.

Related types: foundation::uint32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

GroupsZ

foundation::uint32 ludus::graphics::rhi::ComputeWorkloadKernel::GroupsZ = 1
Positive workgroup count along Z.

Related types: foundation::uint32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

UseProgramFrom

foundation::uint32 ludus::graphics::rhi::ComputeWorkloadKernel::UseProgramFrom = ~foundation::uint32{0}
Reuse one earlier kernel's shader/layout/pipeline instead of Shader. The referenced kernel must declare its own program (no chains). Bindings are still validated against that program and each dispatch owns its snapshot. The default selects Shader. This avoids compiling identical layer kernels.

Related types: foundation::uint32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp