8 #include "vulkan/vulkan_core.h"
9 #include "rtti/typeinfo.h"
12 #include <nap/numeric.h>
111 std::vector<std::unique_ptr<ShaderVariableDeclaration>>
mMembers;
128 std::vector<std::unique_ptr<ShaderVariableStructDeclaration>>
mElements;
146 std::unique_ptr<ShaderVariableStructDeclaration>
mElement;
unsigned int uint
Definition: numeric.h:23
Definition: shadervariabledeclarations.h:58
@ IVec4
4 signed int vector
EShaderVariableValueType mType
ShaderVariable type.
Definition: shadervariabledeclarations.h:88
uint8_t uint8
Definition: numeric.h:16
virtual ~ShaderVariableDeclaration()
Definition: shadervariabledeclarations.h:63
int mNumElements
Total number of elements in list.
Definition: shadervariabledeclarations.h:162
int mOffset
Memory offset.
Definition: shadervariabledeclarations.h:74
std::vector< std::unique_ptr< ShaderVariableStructDeclaration > > mElements
Struct declaration.
Definition: shadervariabledeclarations.h:128
int mNumElements
Total number of struct elements in list.
Definition: shadervariabledeclarations.h:147
Definition: shadervariabledeclarations.h:140
int mStride
Stride of struct element in array.
Definition: shadervariabledeclarations.h:148
int mStride
Stride of element in array.
Definition: shadervariabledeclarations.h:163
Definition: shadervariabledeclarations.h:119
VkShaderStageFlags mStages
Shader stages: vertex, fragment, compute etc.
Definition: shadervariabledeclarations.h:187
EShaderVariableValueType mElementType
Shader variable type.
Definition: shadervariabledeclarations.h:161
EDescriptorType mDescriptorType
The type of descriptor for this resource.
Definition: shadervariabledeclarations.h:112
EDescriptorType
Definition: shadervariabledeclarations.h:28
EShaderVariableValueType
Definition: shadervariabledeclarations.h:38
std::vector< nap::BufferObjectDeclaration > BufferObjectDeclarationList
Definition: shadervariabledeclarations.h:191
int mSize
Total size (in bytes) of declaration.
Definition: shadervariabledeclarations.h:75
@ Uniform
Specifies a uniform buffer descriptor. device readonly.
Definition: shadervariabledeclarations.h:95
Definition: templateapp.h:17
Definition: shadervariabledeclarations.h:82
std::string mName
Name of the declaration.
Definition: shadervariabledeclarations.h:73
@ Unknown
unknown or invalid shader uniform
Definition: shadervariabledeclarations.h:171
@ Storage
Specifies a storage buffer descriptor. device read/write.
int mBinding
Shader binding identifier.
Definition: shadervariabledeclarations.h:186
std::unique_ptr< ShaderVariableStructDeclaration > mElement
Struct declaration.
Definition: shadervariabledeclarations.h:146
std::vector< std::unique_ptr< ShaderVariableDeclaration > > mMembers
All shader declarations associated with struct.
Definition: shadervariabledeclarations.h:111
Definition: shadervariabledeclarations.h:155