Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_shader.h
| Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | typedef enum GPUBuiltinShader { | ||||
| GPU_SHADER_3D_FLAT_COLOR, | GPU_SHADER_3D_FLAT_COLOR, | ||||
| GPU_SHADER_3D_SMOOTH_COLOR, | GPU_SHADER_3D_SMOOTH_COLOR, | ||||
| GPU_SHADER_3D_DEPTH_ONLY, | GPU_SHADER_3D_DEPTH_ONLY, | ||||
| /* basic image drawing */ | /* basic image drawing */ | ||||
| GPU_SHADER_2D_IMAGE_MASK_UNIFORM_COLOR, | GPU_SHADER_2D_IMAGE_MASK_UNIFORM_COLOR, | ||||
| GPU_SHADER_3D_IMAGE_MODULATE_ALPHA, | GPU_SHADER_3D_IMAGE_MODULATE_ALPHA, | ||||
| GPU_SHADER_3D_IMAGE_RECT_MODULATE_ALPHA, | GPU_SHADER_3D_IMAGE_RECT_MODULATE_ALPHA, | ||||
| GPU_SHADER_3D_IMAGE_DEPTH, | GPU_SHADER_3D_IMAGE_DEPTH, | ||||
| /* stereo 3d */ | |||||
| GPU_SHADER_2D_IMAGE_INTERLACE, | |||||
| /* points */ | /* points */ | ||||
| GPU_SHADER_2D_POINT_FIXED_SIZE_UNIFORM_COLOR, | GPU_SHADER_2D_POINT_FIXED_SIZE_UNIFORM_COLOR, | ||||
| GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_SMOOTH, | GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_SMOOTH, | ||||
| GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_SMOOTH, | GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_SMOOTH, | ||||
| GPU_SHADER_2D_POINT_UNIFORM_SIZE_VARYING_COLOR_OUTLINE_SMOOTH, | GPU_SHADER_2D_POINT_UNIFORM_SIZE_VARYING_COLOR_OUTLINE_SMOOTH, | ||||
| GPU_SHADER_2D_POINT_VARYING_SIZE_VARYING_COLOR, | GPU_SHADER_2D_POINT_VARYING_SIZE_VARYING_COLOR, | ||||
| GPU_SHADER_3D_POINT_FIXED_SIZE_UNIFORM_COLOR, | GPU_SHADER_3D_POINT_FIXED_SIZE_UNIFORM_COLOR, | ||||
| GPU_SHADER_3D_POINT_FIXED_SIZE_VARYING_COLOR, | GPU_SHADER_3D_POINT_FIXED_SIZE_VARYING_COLOR, | ||||
| GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_SMOOTH, | GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_SMOOTH, | ||||
| GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_SMOOTH, | GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_SMOOTH, | ||||
| GPU_SHADER_3D_POINT_VARYING_SIZE_UNIFORM_COLOR, | GPU_SHADER_3D_POINT_VARYING_SIZE_UNIFORM_COLOR, | ||||
| GPU_SHADER_3D_POINT_VARYING_SIZE_VARYING_COLOR, | GPU_SHADER_3D_POINT_VARYING_SIZE_VARYING_COLOR, | ||||
| GPU_NUM_BUILTIN_SHADERS /* (not an actual shader) */ | GPU_NUM_BUILTIN_SHADERS /* (not an actual shader) */ | ||||
| } GPUBuiltinShader; | } GPUBuiltinShader; | ||||
| /* Keep these in sync with: | |||||
| * gpu_shader_image_interlace_frag.glsl | |||||
| * gpu_shader_image_rect_interlace_frag.glsl | |||||
| **/ | |||||
| typedef enum GPUInterlaceShader { | |||||
| GPU_SHADER_INTERLACE_ROW = 0, | |||||
| GPU_SHADER_INTERLACE_COLUMN = 1, | |||||
| GPU_SHADER_INTERLACE_CHECKER = 2, | |||||
| } GPUInterlaceShader; | |||||
| GPUShader *GPU_shader_get_builtin_shader(GPUBuiltinShader shader); | GPUShader *GPU_shader_get_builtin_shader(GPUBuiltinShader shader); | ||||
| GPUShader *GPU_shader_get_builtin_fx_shader(int effects, bool persp); | GPUShader *GPU_shader_get_builtin_fx_shader(int effects, bool persp); | ||||
| void GPU_shader_free_builtin_shaders(void); | void GPU_shader_free_builtin_shaders(void); | ||||
| /* Vertex attributes for shaders */ | /* Vertex attributes for shaders */ | ||||
| #define GPU_MAX_ATTRIB 32 | #define GPU_MAX_ATTRIB 32 | ||||
| Show All 19 Lines | |||||