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

Describes a constant param passed into a shader. More...

Public Attributes

std::string nameInShader
 
std::string type
 
std::string role
 
std::string attribute
 
std::string attributeIndex
 

Detailed Description

Describes a constant param passed into a shader.

  • nameInShader: The name written from the codegen into the shader file for the param.
  • type: Type of the param within the shader file.
  • role: Optionally a role can be specified, like position, uv, color.
  • attribute: Optionally an attribute can be specified, like versions or addresses.
  • attributeIndex: Used in metal, to specify indicies of attributes.

Definition at line 126 of file shaderFunctionDesc.h.


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