Blender V5.0
gpu_shader_cxx_global.hh File Reference

Go to the source code of this file.

Namespaces

namespace  gl_VertexShader
namespace  gl_FragmentShader
namespace  gl_ComputeShader

Variables

const int gl_VertexShader::gl_VertexID
const int gl_VertexShader::gl_InstanceID
const int gl_VertexShader::gl_BaseVertex
const int gl_VertexShader::gpu_BaseInstance
const int gl_VertexShader::gpu_InstanceIndex
float4 gl_VertexShader::gl_Position = float4(0)
float gl_VertexShader::gl_PointSize = 0
float gl_VertexShader::gl_ClipDistance [6] = {0}
int gl_VertexShader::gpu_Layer = 0
int gl_VertexShader::gpu_ViewportIndex = 0
const float4 gl_FragmentShader::gl_FragCoord
const bool gl_FragmentShader::gl_FrontFacing = true
const float2 gl_FragmentShader::gl_PointCoord = float2(0)
const int gl_FragmentShader::gl_PrimitiveID = 0
float gl_FragmentShader::gl_FragDepth = 0
const float gl_FragmentShader::gl_ClipDistance [6] = {0}
const int gl_FragmentShader::gpu_Layer = 0
const int gl_FragmentShader::gpu_ViewportIndex = 0
const uint3 gl_ComputeShader::gl_NumWorkGroups
const uint3 gl_ComputeShader::gl_WorkGroupID
const uint3 gl_ComputeShader::gl_LocalInvocationID
const uint3 gl_ComputeShader::gl_GlobalInvocationID
const uint gl_ComputeShader::gl_LocalInvocationIndex
Special Variables

C++ stubs for shading language.

IMPORTANT: Please ask the module team if you need some feature that are not listed in this file.

constexpr uint3 gl_WorkGroupSize = uint3(16, 16, 16)

Variable Documentation

◆ gl_WorkGroupSize

uint3 gl_WorkGroupSize = uint3(16, 16, 16)
constexpr

Definition at line 48 of file gpu_shader_cxx_global.hh.