Crafter.Graphics
C++ graphics library using Wayland and Vulkan.
 
Loading...
Searching...
No Matches
Crafter::TextureShader< PixelType > Class Template Referenceexport

Creates a sampler for a provided VulkanTexture<PixelType>. More...

Public Member Functions

 TextureShader (VulkanTexture< PixelType > *texture)
 Creates a sampler for a texture.
 
void WriteDescriptors (VkDescriptorSet set)
 Writes this class's 1 descriptor to the set, this method must be called before rendering with this shader. Slot 0: VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER.
 

Detailed Description

template<typename PixelType>
class Crafter::TextureShader< PixelType >

Creates a sampler for a provided VulkanTexture<PixelType>.

Template Parameters
PixelTypeThe pixeltype to use.

Constructor & Destructor Documentation

◆ TextureShader()

template<typename PixelType>
Crafter::TextureShader< PixelType >::TextureShader ( VulkanTexture< PixelType > * texture)
inline

Creates a sampler for a texture.

Parameters
textureA pointer to the texture to create the sampler for, the texture must remain valid for the lifetime of this object.

The documentation for this class was generated from the following file: