KDGpu::Texture
Module: Public API
Texture. 
#include <texture.h>
Public Functions
Friends
Public Functions Documentation
function Texture
function ~Texture
function Texture
 | Texture(
    Texture && other
)
  | 
 
function operator=
 | Texture & operator=(
    Texture && other
)
  | 
 
function Texture
 | Texture(
    const Texture & 
) =delete
  | 
 
function operator=
 | Texture & operator=(
    const Texture & 
) =delete
  | 
 
function handle
 | inline const Handle< Texture_t > & handle() const
  | 
 
function isValid
 | inline bool isValid() const
  | 
 
function operator Handle< Texture_t >
 | inline operator Handle< Texture_t >() const
  | 
 
function createView
 | TextureView createView(
    const TextureViewOptions & options =TextureViewOptions()
) const
  | 
 
function map
function unmap
function hostLayoutTransition
 | void hostLayoutTransition(
    const HostLayoutTransition & transition
)
  | 
 
function copyHostMemoryToTexture
 | void copyHostMemoryToTexture(
    const HostMemoryToTextureCopy & copy
)
  | 
 
function copyTextureToHostMemory
 | void copyTextureToHostMemory(
    const TextureToHostMemoryCopy & copy
)
  | 
 
function copyTextureToTextureHost
 | void copyTextureToTextureHost(
    const TextureToTextureCopyHost & copy
)
  | 
 
function getSubresourceLayout
 | SubresourceLayout getSubresourceLayout(
    const TextureSubresource & subresource =TextureSubresource()
) const
  | 
 
function generateMipMaps
 | bool generateMipMaps(
    Device & device,
    Queue & transferQueue,
    const Handle< Texture_t > & sourceTexture,
    const TextureOptions & options,
    TextureLayout oldLayout,
    TextureLayout newLayout =TextureLayout::Undefined
)
  | 
 
Generate mipmaps by copying from another texture and then generating mipmaps for this texture. 
Parameters: 
- device KDGpuDevice
 
- transferQueue KDGpu Transfer Queue
 
- sourceTexture Texture to copy/blit from when creating the mipmaps 
 
- options Texture Options for the target texture 
 
- oldLayout Transitioning from this layout 
 
- newLayout Transitioning to this layout when the mip map creation is done 
 
Return: true when successful 
function generateMipMaps
 | bool generateMipMaps(
    Device & device,
    Queue & transferQueue,
    const TextureOptions & options,
    TextureLayout oldLayout,
    TextureLayout newLayout =TextureLayout::Undefined
)
  | 
 
Generate mipmaps for this texture. 
Parameters: 
- device KDGpuDevice
 
- transferQueue KDGpu Transfer Queue
 
- options Texture Options for the target texture 
 
- oldLayout Transitioning from this layout 
 
- newLayout Transitioning to this layout when the mip map creation is done 
 
Return: true when successful 
function externalMemoryHandle
 | MemoryHandle externalMemoryHandle() const
  | 
 
 | uint64_t drmFormatModifier() const
  | 
 
Friends
friend Swapchain
 | friend class Swapchain(
    Swapchain 
);
  | 
 
friend Device
 | friend class Device(
    Device 
);
  | 
 
friend VulkanGraphicsApi
 | friend class VulkanGraphicsApi(
    VulkanGraphicsApi 
);
  | 
 
friend operator==
 | friend KDGPU_EXPORT bool operator==(
    const Texture & a,
    const Texture & b
);
  | 
 
Updated on 2025-11-02 at 00:01:42 +0000