Skip to content

ludus::graphics::rhi::NativeVulkanImage

Ludus Wiki · API overview · Browse API

Class

Distinct borrowed Vulkan image identity, represented by its native 64-bit bits. Copies do not pin the image; use only while its NativeTextureRead remains open.

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

#include <ludus/graphics/rhi/native_interop.h>
class ludus::graphics::rhi::NativeVulkanImage final

Methods

NativeVulkanImage

constexpr ludus::graphics::rhi::NativeVulkanImage::NativeVulkanImage() noexcept=default
Construct an empty image identity.

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

NativeVulkanImage

explicit constexpr ludus::graphics::rhi::NativeVulkanImage::NativeVulkanImage(ludus::foundation::uint64 bits) noexcept
Wrap a live VkImage bit representation, or zero; never retain or destroy it.

Related types: ludus::foundation::uint64

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

GetBits

constexpr ludus::foundation::uint64 ludus::graphics::rhi::NativeVulkanImage::GetBits() const noexcept
Return the borrowed VkImage bits for explicit conversion using Vulkan's native handle representation.

Related types: ludus::foundation::uint64

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

IsNull

constexpr bool ludus::graphics::rhi::NativeVulkanImage::IsNull() const noexcept
Whether this identity contains no image; does not query GPU completion.

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

operator==

constexpr bool ludus::graphics::rhi::NativeVulkanImage::operator==(const NativeVulkanImage &other) const noexcept=default
Compare image bits only; this does not validate a texture lease incarnation.

Related types: NativeVulkanImage

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