HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RV_Uniform Class Reference

Type info for a single variable in a shader. More...

#include <RV_VKDescriptorSet.h>

Public Member Functions

 RV_Uniform ()=default
 
 RV_Uniform (const UT_StringHolder &name, RV_UniformType type, uint32_t count, uint32_t set, uint32_t binding)
 
 RV_Uniform (const UT_StringHolder &name, RV_UniformType type, uint32_t count, uint32_t set, uint32_t binding, uint32_t offset, uint32_t base_size, uint32_t array_stride, uint32_t matrix_stride, const UT_Array< RV_Uniform > &members, bool is_active)
 
bool isRuntimeArray () const
 Returns true if there is an SSBO array size for the variable. More...
 

Public Attributes

UT_StringHolder myName
 
RV_UniformType myType = RV_UNIFORM_INVALID
 
uint32_t arraySize = 1
 
uint32_t set = 0
 
uint32_t binding = 0
 
uint32_t offset = 0
 byte offset of member in buffer block More...
 
uint32_t baseSize = 0
 
uint32_t arrayStride = 0
 offset between elements in an array More...
 
uint32_t matrixStride = 0
 offset between columns in a matrix More...
 
UT_Array< RV_Uniformmembers
 list of members for struct types More...
 
bool myIsActive = true
 
UT_Array< RV_UniformmyMembers
 

Detailed Description

Type info for a single variable in a shader.

Definition at line 77 of file RV_VKDescriptorSet.h.

Constructor & Destructor Documentation

RV_Uniform::RV_Uniform ( )
default
RV_Uniform::RV_Uniform ( const UT_StringHolder name,
RV_UniformType  type,
uint32_t  count,
uint32_t  set,
uint32_t  binding 
)
inline

Definition at line 83 of file RV_VKDescriptorSet.h.

RV_Uniform::RV_Uniform ( const UT_StringHolder name,
RV_UniformType  type,
uint32_t  count,
uint32_t  set,
uint32_t  binding,
uint32_t  offset,
uint32_t  base_size,
uint32_t  array_stride,
uint32_t  matrix_stride,
const UT_Array< RV_Uniform > &  members,
bool  is_active 
)
inline

Definition at line 94 of file RV_VKDescriptorSet.h.

Member Function Documentation

bool RV_Uniform::isRuntimeArray ( ) const
inline

Returns true if there is an SSBO array size for the variable.

Definition at line 120 of file RV_VKDescriptorSet.h.

Member Data Documentation

uint32_t RV_Uniform::arraySize = 1

Definition at line 125 of file RV_VKDescriptorSet.h.

uint32_t RV_Uniform::arrayStride = 0

offset between elements in an array

Definition at line 138 of file RV_VKDescriptorSet.h.

uint32_t RV_Uniform::baseSize = 0

size of base type. Will be raw size for vector/scalar/struct and column vec size for matrix

Definition at line 136 of file RV_VKDescriptorSet.h.

uint32_t RV_Uniform::binding = 0

Definition at line 129 of file RV_VKDescriptorSet.h.

uint32_t RV_Uniform::matrixStride = 0

offset between columns in a matrix

Definition at line 140 of file RV_VKDescriptorSet.h.

UT_Array<RV_Uniform> RV_Uniform::members

list of members for struct types

Definition at line 142 of file RV_VKDescriptorSet.h.

bool RV_Uniform::myIsActive = true

Definition at line 144 of file RV_VKDescriptorSet.h.

UT_Array<RV_Uniform> RV_Uniform::myMembers

Definition at line 146 of file RV_VKDescriptorSet.h.

UT_StringHolder RV_Uniform::myName

Definition at line 123 of file RV_VKDescriptorSet.h.

RV_UniformType RV_Uniform::myType = RV_UNIFORM_INVALID

Definition at line 124 of file RV_VKDescriptorSet.h.

uint32_t RV_Uniform::offset = 0

byte offset of member in buffer block

Definition at line 133 of file RV_VKDescriptorSet.h.

uint32_t RV_Uniform::set = 0

Definition at line 128 of file RV_VKDescriptorSet.h.


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