Blender V5.3
blender::gpu::shader::metadata Namespace Reference

Classes

struct  ArgumentFormat
struct  FunctionFormat
struct  PrintfFormat
struct  SharedVariable
struct  ParsedResource
struct  ResourceTable
struct  ParsedAttribute
struct  StageInterface
struct  ParsedFragOuput
struct  FragmentOutputs
struct  ParsedFragInput
struct  FragmentInputs
struct  ParsedVertInput
struct  VertexInputs
struct  TemplateDefinition
struct  Symbol
struct  Source

Enumerations

enum  Builtin : uint64_t {
  ClipDistance = hash("gl_ClipDistance") , FragCoord = hash("gl_FragCoord") , FragStencilRef = hash("gl_FragStencilRefARB") , FrontFacing = hash("gl_FrontFacing") ,
  GlobalInvocationID = hash("gl_GlobalInvocationID") , InstanceIndex = hash("gpu_InstanceIndex") , BaseInstance = hash("gpu_BaseInstance") , InstanceID = hash("gl_InstanceID") ,
  LocalInvocationID = hash("gl_LocalInvocationID") , LocalInvocationIndex = hash("gl_LocalInvocationIndex") , NumWorkGroup = hash("gl_NumWorkGroup") , PointCoord = hash("gl_PointCoord") ,
  PointSize = hash("gl_PointSize") , PrimitiveID = hash("gl_PrimitiveID") , VertexID = hash("gl_VertexID") , WorkGroupID = hash("gl_WorkGroupID") ,
  WorkGroupSize = hash("gl_WorkGroupSize") , drw_debug = hash("drw_debug_") , printf = hash("printf") , assert = hash("assert") ,
  runtime_generated = hash("runtime_generated")
}
enum  Qualifier : uint64_t { in = hash("in") , out = hash("out") , inout = hash("inout") }
enum  Type : uint64_t {
  float1 = hash("float") , float2 = hash("float2") , float3 = hash("float3") , float4 = hash("float4") ,
  float3x3 = hash("float3x3") , float4x4 = hash("float4x4") , int1 = hash("int") , int2 = hash("int2") ,
  int3 = hash("int3") , int4 = hash("int4") , bool1 = hash("bool") , sampler1DArray = hash("sampler1DArray") ,
  sampler2DArray = hash("sampler2DArray") , sampler2D = hash("sampler2D") , sampler3D = hash("sampler3D") , Closure = hash("Closure") ,
  KernelGlobals = hash("KernelGlobals") , ShadingData = hash("ShadingData")
}

Functions

static std::string enum_to_string (metadata::Qualifier qualifier)
static std::string enum_to_string (metadata::Type type_enum)
static constexpr uint64_t hash (const char *name)
static uint64_t hash (const std::string &name)

Enumeration Type Documentation

◆ Builtin

Enumerator
ClipDistance 
FragCoord 
FragStencilRef 
FrontFacing 
GlobalInvocationID 
InstanceIndex 
BaseInstance 
InstanceID 
LocalInvocationID 
LocalInvocationIndex 
NumWorkGroup 
PointCoord 
PointSize 
PrimitiveID 
VertexID 
WorkGroupID 
WorkGroupSize 
drw_debug 
printf 
assert 
runtime_generated 

Definition at line 40 of file metadata.hh.

◆ Qualifier

Enumerator
in 
out 
inout 

Definition at line 64 of file metadata.hh.

◆ Type

Enumerator
float1 
float2 
float3 
float4 
float3x3 
float4x4 
int1 
int2 
int3 
int4 
bool1 
sampler1DArray 
sampler2DArray 
sampler2D 
sampler3D 
Closure 
KernelGlobals 
ShadingData 

Definition at line 70 of file metadata.hh.

Function Documentation

◆ enum_to_string() [1/2]

std::string blender::gpu::shader::metadata::enum_to_string ( metadata::Qualifier qualifier)
static

◆ enum_to_string() [2/2]

std::string blender::gpu::shader::metadata::enum_to_string ( metadata::Type type_enum)
static

◆ hash() [1/2]

constexpr uint64_t blender::gpu::shader::metadata::hash ( const char * name)
staticconstexpr

Definition at line 24 of file metadata.hh.

References hash().

Referenced by hash(), and hash().

◆ hash() [2/2]

uint64_t blender::gpu::shader::metadata::hash ( const std::string & name)
inlinestatic

Definition at line 35 of file metadata.hh.

References hash().