Skip to content

ludus::graphics::rhi::GpuScope

Ludus Wiki · API overview · Browse API

Class

Owner-thread lexical scope; failed annotation admission never prevents rendering. Destruction closes only a scope successfully begun by this instance.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/gpu_scope.h

#include <ludus/graphics/rhi/gpu_scope.h>
class ludus::graphics::rhi::GpuScope final

Methods

GpuScope

ludus::graphics::rhi::GpuScope::GpuScope(DeviceHandle device, const GpuScopeDescription &scope) noexcept
Begin scope on device, borrowing neither the descriptor nor its name after return.

Related types: DeviceHandle · GpuScopeDescription

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/gpu_scope.h

~GpuScope

ludus::graphics::rhi::GpuScope::~GpuScope() noexcept
Close an admitted scope; no GPU wait and no ownership of the device.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/gpu_scope.h

GpuScope

ludus::graphics::rhi::GpuScope::GpuScope(const GpuScope &)=delete
Copying would duplicate native scope ownership and is forbidden.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/gpu_scope.h

operator=

GpuScope & ludus::graphics::rhi::GpuScope::operator=(const GpuScope &)=delete
Assignment cannot transfer an active lexical scope.

Related types: GpuScope

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/gpu_scope.h