Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::shader::WorkgroupSize Struct Reference

Declared workgroup size of a compute entry point. Every dimension is at least 1, and the product bounds how many invocations one dispatched workgroup runs. More...

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

Public Member Functions

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

Public Attributes

uint32_t x = 1
 Invocations along X.
uint32_t y = 1
 Invocations along Y.
uint32_t z = 1
 Invocations along Z.

Friends

std::ostream & operator<< (std::ostream &os, const WorkgroupSize &value)
 Ostream output operator, e.g. 8x8x1.

Detailed Description

Declared workgroup size of a compute entry point. Every dimension is at least 1, and the product bounds how many invocations one dispatched workgroup runs.

Member Function Documentation

◆ operator==()

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

Equality operator.

Parameters
otherSize to compare against.

◆ operator<<

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

Ostream output operator, e.g. 8x8x1.

Parameters
osOutput stream.
valueSize to output.

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