HgiShaderFunctionBufferDesc Struct Reference

Describes a buffer to be passed into a shader. More...

Public Attributes

std::string nameInShader
 
std::string type
 
uint32_t bindIndex
 
uint32_t arraySize
 
HgiBindingType binding
 
bool writable
 

Detailed Description

Describes a buffer to be passed into a shader.

  • nameInShader: The name written from the codegen into shader file for the texture.
  • type: Type of the param within the shader file.
  • bindIndex: The index of the resource.
  • arraySize: The size of the array when binding is a HgiBindingTypeArray.
  • bindingType: The binding model to use to expose the buffer to the shader.
  • writeable: Whether the resource is writable.

Definition at line 111 of file shaderFunctionDesc.h.


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