Skip to content

KDGpu::Texture

Module: Public API

Texture.

#include <texture.h>

Public Functions

Name
Texture()
~Texture()
Texture(Texture && other)
Texture & operator=(Texture && other)
Texture(const Texture & ) =delete
Texture & operator=(const Texture & ) =delete
const Handle< Texture_t > & handle() const
bool isValid() const
operator Handle< Texture_t >() const
TextureView createView(const TextureViewOptions & options =TextureViewOptions()) const
void * map()
void unmap()
SubresourceLayout getSubresourceLayout(const TextureSubresource & subresource =TextureSubresource()) const
bool generateMipMaps(Device & device, Queue & transferQueue, const TextureOptions & options, TextureLayout oldLayout, TextureLayout newLayout =TextureLayout::Undefined)
MemoryHandle externalMemoryHandle() const

Friends

Name
class Swapchain
class Device
class VulkanGraphicsApi
KDGPU_EXPORT bool operator==(const Texture & a, const Texture & b)

Public Functions Documentation

function Texture

1
Texture()

function ~Texture

1
~Texture()

function Texture

1
2
3
Texture(
    Texture && other
)

function operator=

1
2
3
Texture & operator=(
    Texture && other
)

function Texture

1
2
3
Texture(
    const Texture & 
) =delete

function operator=

1
2
3
Texture & operator=(
    const Texture & 
) =delete

function handle

1
inline const Handle< Texture_t > & handle() const

function isValid

1
inline bool isValid() const

function operator Handle< Texture_t >

1
inline operator Handle< Texture_t >() const

function createView

1
2
3
TextureView createView(
    const TextureViewOptions & options =TextureViewOptions()
) const

function map

1
void * map()

function unmap

1
void unmap()

function getSubresourceLayout

1
2
3
SubresourceLayout getSubresourceLayout(
    const TextureSubresource & subresource =TextureSubresource()
) const

function generateMipMaps

1
2
3
4
5
6
7
bool generateMipMaps(
    Device & device,
    Queue & transferQueue,
    const TextureOptions & options,
    TextureLayout oldLayout,
    TextureLayout newLayout =TextureLayout::Undefined
)

function externalMemoryHandle

1
MemoryHandle externalMemoryHandle() const

Friends

friend Swapchain

1
2
3
friend class Swapchain(
    Swapchain 
);

friend Device

1
2
3
friend class Device(
    Device 
);

friend VulkanGraphicsApi

1
2
3
friend class VulkanGraphicsApi(
    VulkanGraphicsApi 
);

friend operator==

1
2
3
4
5
friend KDGPU_EXPORT bool operator==(
    const Texture & a,

    const Texture & b
);

Updated on 2024-11-21 at 00:02:29 +0000