Capítulo 492 de 859

Chapter 492: SubgroupFunctionNode

Core Idea

This class represents a set of built in WGSL shader functions that sync synchronously execute an operation across a subgroup, or 'warp', of compute or fragment shader invocations within a workgroup. Typically, these functions will synchronously execute an operation using data from all active invocations within the subgroup, then broadcast that result to all active invocations. In other graphics APIs, subgroup functions are also referred to as wave intrinsics (DirectX/HLSL) or warp intrinsics (CUDA).

Key Concepts

  • aNode : Node: The method's first argument.
  • bNode : Node: The method's second argument.
  • method : string: The subgroup/wave intrinsic method to construct.

Reference Tables

Constructor

Signature
new SubgroupFunctionNode( method : string, aNode : Node, bNode : Node )

Properties

PropertyDescription
.aNode : NodeThe method's first argument.
.bNode : NodeThe method's second argument.
.method : stringThe subgroup/wave intrinsic method to construct.

Key Takeaways

  1. SubgroupFunctionNode extends: EventDispatcher → Node → TempNode
  2. Most relevant properties: aNode, bNode, method.

Connects To