Creates a sampler for a provided VulkanTexture<PixelType>.
More...
|
| | 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.
|
| |
template<typename PixelType>
class Crafter::TextureShader< PixelType >
Creates a sampler for a provided VulkanTexture<PixelType>.
- Template Parameters
-
| PixelType | The pixeltype to use. |
◆ TextureShader()
template<typename PixelType>
Creates a sampler for a texture.
- Parameters
-
| texture | A 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:
- src/module/Crafter.Graphics-TextureShader.cppm