Loading...
Searching...
No Matches
HgiShaderFunctionBufferDesc Struct Reference

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

#include <shaderFunctionDesc.h>

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.

Member Data Documentation

◆ arraySize

uint32_t arraySize

Definition at line 119 of file shaderFunctionDesc.h.

◆ bindIndex

uint32_t bindIndex

Definition at line 118 of file shaderFunctionDesc.h.

◆ binding

HgiBindingType binding

Definition at line 120 of file shaderFunctionDesc.h.

◆ nameInShader

std::string nameInShader

Definition at line 116 of file shaderFunctionDesc.h.

◆ type

std::string type

Definition at line 117 of file shaderFunctionDesc.h.

◆ writable

bool writable

Definition at line 121 of file shaderFunctionDesc.h.


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