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::shader::TypeLayout Struct Reference

Alignment and size of a host-shareable type. More...

#include "donner/gpu/shader/IrLayout.h"

Public Member Functions

bool operator== (const TypeLayout &other) const =default
 Equality operator.

Public Attributes

uint32_t alignBytes = 0
 Required alignment in bytes.
uint32_t sizeBytes = 0
 Size in bytes (for sized types).

Friends

std::ostream & operator<< (std::ostream &os, const TypeLayout &value)
 Ostream output operator, e.g. align=16 size=288.

Detailed Description

Alignment and size of a host-shareable type.

Member Function Documentation

◆ operator==()

bool donner::gpu::shader::TypeLayout::operator== ( const TypeLayout & other) const
default

Equality operator.

Parameters
otherLayout to compare against.

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const TypeLayout & value )
friend

Ostream output operator, e.g. align=16 size=288.

Parameters
osOutput stream.
valueLayout to output.

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