Cogs.Rendering
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Cogs::TextureViewDescription Struct Reference

Describes how to fetch data from a texture in shaders. More...

#include <ITextures.h>

Public Member Functions

size_t hash (size_t hashValue=Cogs::hash()) const
 

Public Attributes

TextureHandle texture
 Texture.
 
uint32_t layerIndex
 Index of the first layer (if array) to fetch from.
 
uint32_t numLayers
 Number of array layers available.
 
uint32_t levelIndex
 First mipmap level to fetch data from.
 
uint32_t numLevels
 Number of mipmap levels available.
 

Detailed Description

Describes how to fetch data from a texture in shaders.

Member Function Documentation

◆ hash()

size_t Cogs::TextureViewDescription::hash ( size_t  hashValue = Cogs::hash()) const
inline

Member Data Documentation

◆ layerIndex

uint32_t Cogs::TextureViewDescription::layerIndex

Index of the first layer (if array) to fetch from.

Referenced by hash().

◆ levelIndex

uint32_t Cogs::TextureViewDescription::levelIndex

First mipmap level to fetch data from.

Referenced by hash().

◆ numLayers

uint32_t Cogs::TextureViewDescription::numLayers

Number of array layers available.

Referenced by hash().

◆ numLevels

uint32_t Cogs::TextureViewDescription::numLevels

Number of mipmap levels available.

Referenced by hash().

◆ texture

TextureHandle Cogs::TextureViewDescription::texture

Texture.

Referenced by hash().


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