Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::gpu::VertexAttribute Struct Reference

One vertex attribute within a VertexBufferLayout. More...

#include "donner/gpu/Descriptors.h"

Public Attributes

VertexFormat format = VertexFormat::Float32x2
 Attribute format.
uint32_t offsetBytes = 0
 Byte offset within one element.
uint32_t shaderLocation = 0
 Location index in the shader.

Detailed Description

One vertex attribute within a VertexBufferLayout.

Member Data Documentation

◆ format

VertexFormat donner::gpu::VertexAttribute::format = VertexFormat::Float32x2

Attribute format.

◆ offsetBytes

uint32_t donner::gpu::VertexAttribute::offsetBytes = 0

Byte offset within one element.

◆ shaderLocation

uint32_t donner::gpu::VertexAttribute::shaderLocation = 0

Location index in the shader.


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