igor::iBufferLayoutEntry Struct Reference

#include <iBufferLayout.h>

Public Member Functions

 iBufferLayoutEntry ()=default
 
 iBufferLayoutEntry (iShaderDataType type, bool normalized=false)
 
uint32_t getComponentCount () const
 

Public Attributes

iShaderDataType _type
 
uint32 _size
 
uint32 _offset
 
bool _normalized
 

Detailed Description

buffer layout entry defnition

Constructor & Destructor Documentation

◆ iBufferLayoutEntry() [1/2]

igor::iBufferLayoutEntry::iBufferLayoutEntry ( )
default

does nothing

◆ iBufferLayoutEntry() [2/2]

igor::iBufferLayoutEntry::iBufferLayoutEntry ( iShaderDataType  type,
bool  normalized = false 
)

init with parameters

Parameters
typethe shader data type to use
normalizedif true data will be normalized

Member Function Documentation

◆ getComponentCount()

uint32_t igor::iBufferLayoutEntry::getComponentCount ( ) const
Returns
the amout of components within this layout entry

Member Data Documentation

◆ _normalized

bool igor::iBufferLayoutEntry::_normalized

if true data will be normalized when passed to the shader

◆ _offset

uint32 igor::iBufferLayoutEntry::_offset

offset in bytes

◆ _size

uint32 igor::iBufferLayoutEntry::_size

size in bytes

◆ _type

iShaderDataType igor::iBufferLayoutEntry::_type

shader data type of this entry


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