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

#include <shaderFunctionDesc.h>

Public Member Functions

HGI_API HgiShaderFunctionDesc ()
 

Public Attributes

std::string debugName
 
HgiShaderStage shaderStage
 
const char * shaderCodeDeclarations
 
const char * shaderCode
 
std::stringgeneratedShaderCodeOut
 
std::vector
< HgiShaderFunctionTextureDesc
textures
 
std::vector
< HgiShaderFunctionBufferDesc
buffers
 
std::vector
< HgiShaderFunctionParamDesc
constantParams
 
std::vector
< HgiShaderFunctionParamDesc
stageGlobalMembers
 
std::vector
< HgiShaderFunctionParamDesc
stageInputs
 
std::vector
< HgiShaderFunctionParamDesc
stageOutputs
 
std::vector
< HgiShaderFunctionParamBlockDesc
stageInputBlocks
 
std::vector
< HgiShaderFunctionParamBlockDesc
stageOutputBlocks
 
HgiShaderFunctionTessellationDesc tessellationDescriptor
 
HgiShaderFunctionComputeDesc computeDescriptor
 
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.
  • tessellationDesc: Description of tessellation shader function.
  • computeDescriptor: Description of compute shader function.

Definition at line 377 of file shaderFunctionDesc.h.

Constructor & Destructor Documentation

HGI_API HgiShaderFunctionDesc::HgiShaderFunctionDesc ( )

Member Data Documentation

std::vector<HgiShaderFunctionBufferDesc> HgiShaderFunctionDesc::buffers

Definition at line 387 of file shaderFunctionDesc.h.

HgiShaderFunctionComputeDesc HgiShaderFunctionDesc::computeDescriptor

Definition at line 395 of file shaderFunctionDesc.h.

std::vector<HgiShaderFunctionParamDesc> HgiShaderFunctionDesc::constantParams

Definition at line 388 of file shaderFunctionDesc.h.

std::string HgiShaderFunctionDesc::debugName

Definition at line 381 of file shaderFunctionDesc.h.

HgiShaderFunctionFragmentDesc HgiShaderFunctionDesc::fragmentDescriptor

Definition at line 396 of file shaderFunctionDesc.h.

std::string* HgiShaderFunctionDesc::generatedShaderCodeOut

Definition at line 385 of file shaderFunctionDesc.h.

const char* HgiShaderFunctionDesc::shaderCode

Definition at line 384 of file shaderFunctionDesc.h.

const char* HgiShaderFunctionDesc::shaderCodeDeclarations

Definition at line 383 of file shaderFunctionDesc.h.

HgiShaderStage HgiShaderFunctionDesc::shaderStage

Definition at line 382 of file shaderFunctionDesc.h.

std::vector<HgiShaderFunctionParamDesc> HgiShaderFunctionDesc::stageGlobalMembers

Definition at line 389 of file shaderFunctionDesc.h.

std::vector<HgiShaderFunctionParamBlockDesc> HgiShaderFunctionDesc::stageInputBlocks

Definition at line 392 of file shaderFunctionDesc.h.

std::vector<HgiShaderFunctionParamDesc> HgiShaderFunctionDesc::stageInputs

Definition at line 390 of file shaderFunctionDesc.h.

std::vector<HgiShaderFunctionParamBlockDesc> HgiShaderFunctionDesc::stageOutputBlocks

Definition at line 393 of file shaderFunctionDesc.h.

std::vector<HgiShaderFunctionParamDesc> HgiShaderFunctionDesc::stageOutputs

Definition at line 391 of file shaderFunctionDesc.h.

HgiShaderFunctionTessellationDesc HgiShaderFunctionDesc::tessellationDescriptor

Definition at line 394 of file shaderFunctionDesc.h.

std::vector<HgiShaderFunctionTextureDesc> HgiShaderFunctionDesc::textures

Definition at line 386 of file shaderFunctionDesc.h.


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