Loading...
Searching...
No Matches
HgiShaderFunctionDesc Struct Reference

Describes the properties needed to create a GPU shader function. More...

#include <shaderFunctionDesc.h>

Public Attributes

std::string debugName
 
HgiShaderStage shaderStage
 
const char * shaderCodeDeclarations
 
const char * shaderCode
 
std::string * generatedShaderCodeOut
 
std::vector< HgiShaderFunctionTextureDesctextures
 
std::vector< HgiShaderFunctionBufferDescbuffers
 
std::vector< HgiShaderFunctionParamDescconstantParams
 
std::vector< HgiShaderFunctionParamDescstageGlobalMembers
 
std::vector< HgiShaderFunctionParamDescstageInputs
 
std::vector< HgiShaderFunctionParamDescstageOutputs
 
std::vector< HgiShaderFunctionParamBlockDescstageInputBlocks
 
std::vector< HgiShaderFunctionParamBlockDescstageOutputBlocks
 
HgiShaderFunctionComputeDesc computeDescriptor
 
HgiShaderFunctionTessellationDesc tessellationDescriptor
 
HgiShaderFunctionGeometryDesc geometryDescriptor
 
HgiShaderFunctionFragmentDesc fragmentDescriptor
 

Detailed Description

Describes the properties needed to create a GPU shader function.

  • debugName: This label can be applied as debug label for gpu debugging.
  • shaderStage: The shader stage this function represents.
  • shaderCodeDeclarations: Optional ascii shader code containing defines and type declarations which need to be emitted before generated resource bindings.
  • shaderCode: The ascii shader code used to compile the shader.
  • generatedShaderCodeOut: Optional pointer to a string that will be filled in with the ascii shader code after shader generation is complete.
  • textures: List of texture descriptions to be passed into a shader.
  • buffers: List of buffer descriptions to be passed into a shader.
  • constantParams: List of descriptions of constant params passed into a shader.
  • stageGlobalMembers: List of descriptions of params declared at global scope.
  • stageInputs: List of descriptions of the inputs of the shader.
  • stageOutputs: List of descriptions of the outputs of the shader.
  • stageInputBlocks: List of descriptions of the input blocks of the shader.
  • stageOutputsBlocks: List of descriptions of the output blocks of the shader.
  • computeDescriptor: Description of compute shader function.
  • tessellationDescriptor: Description of tessellation shader function.
  • geometryDescriptor: Description of geometry shader function.
  • fragmentDescriptor: Description of fragment shader function.

Definition at line 439 of file shaderFunctionDesc.h.

Member Data Documentation

◆ buffers

std::vector<HgiShaderFunctionBufferDesc> buffers

Definition at line 449 of file shaderFunctionDesc.h.

◆ computeDescriptor

HgiShaderFunctionComputeDesc computeDescriptor

Definition at line 456 of file shaderFunctionDesc.h.

◆ constantParams

std::vector<HgiShaderFunctionParamDesc> constantParams

Definition at line 450 of file shaderFunctionDesc.h.

◆ debugName

std::string debugName

Definition at line 443 of file shaderFunctionDesc.h.

◆ fragmentDescriptor

HgiShaderFunctionFragmentDesc fragmentDescriptor

Definition at line 459 of file shaderFunctionDesc.h.

◆ generatedShaderCodeOut

std::string* generatedShaderCodeOut

Definition at line 447 of file shaderFunctionDesc.h.

◆ geometryDescriptor

HgiShaderFunctionGeometryDesc geometryDescriptor

Definition at line 458 of file shaderFunctionDesc.h.

◆ shaderCode

const char* shaderCode

Definition at line 446 of file shaderFunctionDesc.h.

◆ shaderCodeDeclarations

const char* shaderCodeDeclarations

Definition at line 445 of file shaderFunctionDesc.h.

◆ shaderStage

HgiShaderStage shaderStage

Definition at line 444 of file shaderFunctionDesc.h.

◆ stageGlobalMembers

std::vector<HgiShaderFunctionParamDesc> stageGlobalMembers

Definition at line 451 of file shaderFunctionDesc.h.

◆ stageInputBlocks

std::vector<HgiShaderFunctionParamBlockDesc> stageInputBlocks

Definition at line 454 of file shaderFunctionDesc.h.

◆ stageInputs

std::vector<HgiShaderFunctionParamDesc> stageInputs

Definition at line 452 of file shaderFunctionDesc.h.

◆ stageOutputBlocks

std::vector<HgiShaderFunctionParamBlockDesc> stageOutputBlocks

Definition at line 455 of file shaderFunctionDesc.h.

◆ stageOutputs

std::vector<HgiShaderFunctionParamDesc> stageOutputs

Definition at line 453 of file shaderFunctionDesc.h.

◆ tessellationDescriptor

HgiShaderFunctionTessellationDesc tessellationDescriptor

Definition at line 457 of file shaderFunctionDesc.h.

◆ textures

std::vector<HgiShaderFunctionTextureDesc> textures

Definition at line 448 of file shaderFunctionDesc.h.


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