HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiShaderFunctionComputeDesc Struct Reference

#include <shaderFunctionDesc.h>

Public Member Functions

HGI_API HgiShaderFunctionComputeDesc ()
 

Public Attributes

GfVec3i localSize
 

Detailed Description

Describes a compute function's description

  • localSize: Optional. Specifices the 3D size of the local thread grouping. Defaults to 0, meaning it is not set. When x > 0, y and z must also be set > 0. When localSize is set to > 0, the following source is generated: GLSL: layout(local_size_x = localSize[0], local_size_y = localSize[1], local_size_z = localSize[2]) in; MSL: [[max_total_threads_per_threadgroup(localSize[0] * localSize[1] * localSize[w])]]

Definition at line 267 of file shaderFunctionDesc.h.

Constructor & Destructor Documentation

HGI_API HgiShaderFunctionComputeDesc::HgiShaderFunctionComputeDesc ( )

Member Data Documentation

GfVec3i HgiShaderFunctionComputeDesc::localSize

Definition at line 272 of file shaderFunctionDesc.h.


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