#include <shadervariabledeclarations.h>
Public Attributes | |
| int | mBinding |
| Shader binding identifier. More... | |
| VkShaderStageFlags | mStages |
| Shader stages: vertex, fragment, compute etc. More... | |
Public Attributes inherited from ShaderVariableStructDeclaration | |
| 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... | |
Buffer Object Declaration struct. Stores shader variable declarations and is used as a descriptor object for UBOs and SSBOs.
| BufferObjectDeclaration | ( | const std::string & | name, |
| int | binding, | ||
| VkShaderStageFlags | inStages, | ||
| EDescriptorType | descriptorType, | ||
| int | size | ||
| ) |
| BufferObjectDeclaration | ( | BufferObjectDeclaration && | inRHS | ) |
| const ShaderVariableDeclaration& getBufferDeclaration | ( | ) | const |
Returns the first buffer declaration. Asserts if not present. Handy accessor for buffer bindings.
| BufferObjectDeclaration& operator= | ( | BufferObjectDeclaration && | inRHS | ) |
| int mBinding |
Shader binding identifier.
| VkShaderStageFlags mStages |
Shader stages: vertex, fragment, compute etc.