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::ArrayStrideInfo Struct Reference

Element stride of an array in an address space, plus whether uniform rules padded it. More...

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

Public Member Functions

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

Public Attributes

uint32_t strideBytes = 0
 Effective element stride.
bool paddedFromNatural = false
 True when the uniform 16-byte rule raised the natural stride. EMITTER OBLIGATION: WGSL has no stride attribute, so emitters must materialize a padded element wrapper (e.g. a struct with explicit tail padding) whenever this is set.

Friends

std::ostream & operator<< (std::ostream &os, const ArrayStrideInfo &value)
 Ostream output operator, e.g. stride=16 padded=true.

Detailed Description

Element stride of an array in an address space, plus whether uniform rules padded it.

Member Function Documentation

◆ operator==()

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

Equality operator.

Parameters
otherInfo to compare against.

◆ operator<<

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

Ostream output operator, e.g. stride=16 padded=true.

Parameters
osOutput stream.
valueInfo to output.

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