Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::shader::wgsl::Function Struct Reference

One declared function. More...

#include "donner/gpu/shader/wgsl/Module.h"

Public Attributes

NameRef name
 Module-owned function name.
SourceSpan nameSpan
 Name location in the source.
Type returnType
 Void for a function without a result.
ArenaId firstParameter = kInvalidArenaId
 First parameter Symbol arena item.
uint16_t parameterCount = 0
 Number of parameters.
ArenaId firstStatement = kInvalidArenaId
 First body statement.
Stage stage = Stage::None
 Helper or compute entry point.
std::array< uint32_t, 3 > workgroupSize = {1, 1, 1}
 Compute workgroup dimensions.
InterfaceDecoration returnInterface
 Direct return-value decoration.
uint32_t resourceMask = 0
 Resources statically accessed, including called helpers.
bool hasLocalArrays = false
 Requires function-local array storage or temporaries.
uint16_t firstInput = 0
 First flattened entry input in the interface-variable arena.
uint16_t inputCount = 0
 Number of flattened entry inputs.
uint16_t firstOutput = 0
 First flattened entry output in the interface-variable arena.
uint16_t outputCount = 0
 Number of flattened entry outputs.

Detailed Description

One declared function.

Member Data Documentation

◆ firstInput

uint16_t donner::gpu::shader::wgsl::Function::firstInput = 0

First flattened entry input in the interface-variable arena.

◆ firstOutput

uint16_t donner::gpu::shader::wgsl::Function::firstOutput = 0

First flattened entry output in the interface-variable arena.

◆ firstParameter

ArenaId donner::gpu::shader::wgsl::Function::firstParameter = kInvalidArenaId

First parameter Symbol arena item.

◆ firstStatement

ArenaId donner::gpu::shader::wgsl::Function::firstStatement = kInvalidArenaId

First body statement.

◆ hasLocalArrays

bool donner::gpu::shader::wgsl::Function::hasLocalArrays = false

Requires function-local array storage or temporaries.

◆ inputCount

uint16_t donner::gpu::shader::wgsl::Function::inputCount = 0

Number of flattened entry inputs.

◆ name

NameRef donner::gpu::shader::wgsl::Function::name

Module-owned function name.

◆ nameSpan

SourceSpan donner::gpu::shader::wgsl::Function::nameSpan

Name location in the source.

◆ outputCount

uint16_t donner::gpu::shader::wgsl::Function::outputCount = 0

Number of flattened entry outputs.

◆ parameterCount

uint16_t donner::gpu::shader::wgsl::Function::parameterCount = 0

Number of parameters.

◆ resourceMask

uint32_t donner::gpu::shader::wgsl::Function::resourceMask = 0

Resources statically accessed, including called helpers.

◆ returnInterface

InterfaceDecoration donner::gpu::shader::wgsl::Function::returnInterface

Direct return-value decoration.

◆ returnType

Type donner::gpu::shader::wgsl::Function::returnType

Void for a function without a result.

◆ stage

Stage donner::gpu::shader::wgsl::Function::stage = Stage::None

Helper or compute entry point.

◆ workgroupSize

std::array<uint32_t, 3> donner::gpu::shader::wgsl::Function::workgroupSize = {1, 1, 1}

Compute workgroup dimensions.


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