Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_shader.h
| Show First 20 Lines • Show All 349 Lines • ▼ Show 20 Lines | typedef enum eGPUBuiltinShader { | ||||
| GPU_SHADER_2D_UV_UNIFORM_COLOR, | GPU_SHADER_2D_UV_UNIFORM_COLOR, | ||||
| GPU_SHADER_2D_UV_VERTS, | GPU_SHADER_2D_UV_VERTS, | ||||
| GPU_SHADER_2D_UV_FACEDOTS, | GPU_SHADER_2D_UV_FACEDOTS, | ||||
| GPU_SHADER_2D_UV_EDGES, | GPU_SHADER_2D_UV_EDGES, | ||||
| GPU_SHADER_2D_UV_EDGES_SMOOTH, | GPU_SHADER_2D_UV_EDGES_SMOOTH, | ||||
| GPU_SHADER_2D_UV_FACES, | GPU_SHADER_2D_UV_FACES, | ||||
| GPU_SHADER_2D_UV_FACES_STRETCH_AREA, | GPU_SHADER_2D_UV_FACES_STRETCH_AREA, | ||||
| GPU_SHADER_2D_UV_FACES_STRETCH_ANGLE, | GPU_SHADER_2D_UV_FACES_STRETCH_ANGLE, | ||||
| /* Selection */ | |||||
| GPU_SHADER_3D_FLAT_SELECT_ID, | |||||
| GPU_SHADER_3D_UNIFORM_SELECT_ID, | |||||
| } eGPUBuiltinShader; | } eGPUBuiltinShader; | ||||
| #define GPU_SHADER_BUILTIN_LEN (GPU_SHADER_3D_UNIFORM_SELECT_ID + 1) | #define GPU_SHADER_BUILTIN_LEN (GPU_SHADER_2D_UV_FACES_STRETCH_ANGLE + 1) | ||||
| /** Support multiple configurations. */ | /** Support multiple configurations. */ | ||||
| typedef enum eGPUShaderConfig { | typedef enum eGPUShaderConfig { | ||||
| GPU_SHADER_CFG_DEFAULT = 0, | GPU_SHADER_CFG_DEFAULT = 0, | ||||
| GPU_SHADER_CFG_CLIPPED = 1, | GPU_SHADER_CFG_CLIPPED = 1, | ||||
| } eGPUShaderConfig; | } eGPUShaderConfig; | ||||
| #define GPU_SHADER_CFG_LEN (GPU_SHADER_CFG_CLIPPED + 1) | #define GPU_SHADER_CFG_LEN (GPU_SHADER_CFG_CLIPPED + 1) | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||