Public Member Functions | Public Attributes | List of all members
ShaderVariableStructDeclaration Class Reference

#include <shadervariabledeclarations.h>

Public Member Functions

 ShaderVariableStructDeclaration (const std::string &name, EDescriptorType descriptorType, int offset, int size)
virtual ~ShaderVariableStructDeclaration () override
 ShaderVariableStructDeclaration (ShaderVariableStructDeclaration &&inRHS)
ShaderVariableStructDeclarationoperator= (ShaderVariableStructDeclaration &&inRHS)
 ShaderVariableStructDeclaration (const ShaderVariableStructDeclaration &)=delete
ShaderVariableStructDeclarationoperator= (const ShaderVariableStructDeclaration &)=delete
const ShaderVariableDeclarationfindMember (const std::string &name) const
- Public Member Functions inherited from ShaderVariableDeclaration
 ShaderVariableDeclaration (const std::string &name, int offset, int size)
virtual ~ShaderVariableDeclaration ()

Public Attributes

std::vector< std::unique_ptr< ShaderVariableDeclaration > > mMembers
 All shader declarations associated with struct. More...
EDescriptorType mDescriptorType
 The type of descriptor for this resource. More...
- Public Attributes inherited from ShaderVariableDeclaration
std::string mName
 Name of the declaration. More...
int mOffset
 Memory offset. More...
int mSize
 Total size (in bytes) of declaration. More...


Shader variable struct shader declaration.

Inheritance diagram for ShaderVariableStructDeclaration:
Collaboration diagram for ShaderVariableStructDeclaration:

Constructor & Destructor Documentation

◆ ShaderVariableStructDeclaration() [1/3]

ShaderVariableStructDeclaration ( const std::string &  name,
EDescriptorType  descriptorType,
int  offset,
int  size 

◆ ~ShaderVariableStructDeclaration()

virtual ~ShaderVariableStructDeclaration ( )

◆ ShaderVariableStructDeclaration() [2/3]

◆ ShaderVariableStructDeclaration() [3/3]

Member Function Documentation

◆ findMember()

const ShaderVariableDeclaration* findMember ( const std::string &  name) const
a shader variable shader declaration with the given name.
namename of the declaration to find
found declaration, nullptr if not found.

◆ operator=() [1/2]

◆ operator=() [2/2]

Member Data Documentation

◆ mDescriptorType

EDescriptorType mDescriptorType

The type of descriptor for this resource.

◆ mMembers

std::vector<std::unique_ptr<ShaderVariableDeclaration> > mMembers

All shader declarations associated with struct.