Cogs.Core
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.

Definition at line 12 of file ITextures.h.

Member Function Documentation

◆ hash()

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

Definition at line 25 of file ITextures.h.

Member Data Documentation

◆ layerIndex

uint32_t Cogs::TextureViewDescription::layerIndex

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

Definition at line 17 of file ITextures.h.

Referenced by Cogs::TexturesWebGPU::createTextureView(), Cogs::TexturesGLES30::createTextureView(), and Cogs::ContextGLES30::endRenderPass().

◆ levelIndex

uint32_t Cogs::TextureViewDescription::levelIndex

First mipmap level to fetch data from.

Definition at line 21 of file ITextures.h.

Referenced by Cogs::TexturesD3D11::createTextureView(), Cogs::TexturesWebGPU::createTextureView(), and Cogs::ContextGLES30::endRenderPass().

◆ numLayers

uint32_t Cogs::TextureViewDescription::numLayers

Number of array layers available.

Definition at line 19 of file ITextures.h.

Referenced by Cogs::TexturesWebGPU::createTextureView(), Cogs::ContextGLES30::endRenderPass(), and Cogs::TexturesD3D12::loadTexture().

◆ numLevels

uint32_t Cogs::TextureViewDescription::numLevels

◆ texture

TextureHandle Cogs::TextureViewDescription::texture

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