NAP
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)
 
const ShaderVariableDeclarationfindMember (const std::string &name) const
 
- Public Member Functions inherited from ShaderVariableDeclaration
 ShaderVariableDeclaration (const std::string &name, int offset, int size)
 
virtual ~ShaderVariableDeclaration ()
 
 ShaderVariableDeclaration (ShaderVariableDeclaration &&inRHS)=default
 
ShaderVariableDeclarationoperator= (ShaderVariableDeclaration &&inRHS)=default
 
 ShaderVariableDeclaration (const ShaderVariableDeclaration &)=delete
 
ShaderVariableDeclarationoperator= (const ShaderVariableDeclaration &)=delete
 

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...
 

Description

Shader variable struct shader declaration.

Inheritance diagram for ShaderVariableStructDeclaration:
[legend]
Collaboration diagram for ShaderVariableStructDeclaration:
[legend]

Constructor & Destructor Documentation

◆ ShaderVariableStructDeclaration() [1/2]

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

◆ ~ShaderVariableStructDeclaration()

virtual ~ShaderVariableStructDeclaration ( )
overridevirtual

◆ ShaderVariableStructDeclaration() [2/2]

Member Function Documentation

◆ findMember()

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

◆ operator=()

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.