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

Classes

struct  ArgumentFormat
struct  FunctionFormat
struct  PrintfFormat
struct  Source

Enumerations

enum  Builtin : uint64_t {
  FragCoord = hash("gl_FragCoord") , FragStencilRef = hash("gl_FragStencilRefARB") , FrontFacing = hash("gl_FrontFacing") , GlobalInvocationID = hash("gl_GlobalInvocationID") ,
  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") , sampler1DArray = hash("sampler1DArray") , sampler2DArray = hash("sampler2DArray") ,
  sampler2D = hash("sampler2D") , sampler3D = hash("sampler3D") , Closure = hash("Closure")
}

Functions

static constexpr uint64_t hash (const char *name)
static uint64_t hash (const std::string &name)

Enumeration Type Documentation

◆ Builtin

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

Definition at line 50 of file glsl_preprocess.hh.

◆ Qualifier

Enumerator
in 
out 
inout 

Definition at line 71 of file glsl_preprocess.hh.

◆ Type

Enumerator
float1 
float2 
float3 
float4 
float3x3 
float4x4 
sampler1DArray 
sampler2DArray 
sampler2D 
sampler3D 
Closure 

Definition at line 77 of file glsl_preprocess.hh.

Function Documentation

◆ hash() [1/2]

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

Definition at line 34 of file glsl_preprocess.hh.

References hash(), and name.

Referenced by hash().

◆ hash() [2/2]

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

Definition at line 45 of file glsl_preprocess.hh.

References hash, and name.