VkCV Framework  0.0.1
CV Vulkan framework
vkcv::VertexAttachment Struct Reference

Public Member Functions

 VertexAttachment (uint32_t inputLocation, const std::string &name, VertexAttachmentFormat format) noexcept
 

Public Attributes

uint32_t inputLocation
 
std::string name
 
VertexAttachmentFormat format
 
uint32_t offset
 

Friends

struct VertexBinding
 

Detailed Description

Constructor & Destructor Documentation

◆ VertexAttachment()

vkcv::VertexAttachment::VertexAttachment ( uint32_t  inputLocation,
const std::string &  name,
VertexAttachmentFormat  format 
)
noexcept

Describes an individual vertex input attribute/attachment.

Parameters
inputLocationits location in the vertex shader.
namethe name referred to in the shader.
formatthe format (and therefore, the size) this attachment is in. The offset is calculated when a collection of attachments forms a binding, hence the friend declaration.

The documentation for this struct was generated from the following files: