Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::UniformData Struct Reference

#include <PushConstants.h>

Classes

struct  Entry
 

Public Types

using UniformDataContainer = vector< Entry >
 

Public Member Functions

template<typename T >
void set (U64 bindingHash, PushConstantType type, const T &value)
 
template<typename T >
requires (!std::is_same_v<bool, T>)
void set (U64 bindingHash, PushConstantType type, const T *values, size_t count)
 
bool remove (U64 bindingHash)
 
const UniformDataContainerentries () const noexcept
 
const Bytedata (size_t offset) const noexcept
 
template<>
void set (const U64 bindingHash, const PushConstantType type, const bool &value)
 

Private Attributes

UniformDataContainer _data
 
eastl::fixed_vector< Byte, 32, true > _buffer
 

Friends

bool Merge (UniformData &lhs, UniformData &rhs, bool &partial)
 

Detailed Description

Definition at line 57 of file PushConstants.h.

Member Typedef Documentation

◆ UniformDataContainer

Member Function Documentation

◆ data()

const Byte * Divide::UniformData::data ( size_t  offset) const
noexcept

Definition at line 13 of file PushConstants.cpp.

◆ entries()

const UniformData::UniformDataContainer & Divide::UniformData::entries ( ) const
noexcept

Definition at line 8 of file PushConstants.cpp.

◆ remove()

bool Divide::UniformData::remove ( U64  bindingHash)

Definition at line 19 of file PushConstants.cpp.

◆ set() [1/3]

template<>
void Divide::UniformData::set ( const U64  bindingHash,
const PushConstantType  type,
const bool &  value 
)
inline

Definition at line 45 of file PushConstants.inl.

◆ set() [2/3]

template<typename T >
void Divide::UniformData::set ( U64  bindingHash,
PushConstantType  type,
const T &  value 
)

Definition at line 39 of file PushConstants.inl.

◆ set() [3/3]

template<typename T >
requires (!std::is_same_v<bool, T>)
void Divide::UniformData::set ( U64  bindingHash,
PushConstantType  type,
const T *  values,
size_t  count 
)

Definition at line 52 of file PushConstants.inl.

Friends And Related Function Documentation

◆ Merge

bool Merge ( UniformData lhs,
UniformData rhs,
bool &  partial 
)
friend

Definition at line 34 of file PushConstants.cpp.

Member Data Documentation

◆ _buffer

eastl::fixed_vector<Byte, 32, true> Divide::UniformData::_buffer
private

Definition at line 83 of file PushConstants.h.

◆ _data

UniformDataContainer Divide::UniformData::_data
private

Definition at line 82 of file PushConstants.h.


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