Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_basic_shader.h
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | typedef enum GPUBasicShaderOption { | ||||
| GPU_SHADER_SOLID_LIGHTING = (1 << 5), /* use faster lighting (set automatically) */ | GPU_SHADER_SOLID_LIGHTING = (1 << 5), /* use faster lighting (set automatically) */ | ||||
| GPU_SHADER_STIPPLE = (1 << 6), /* use stipple */ | GPU_SHADER_STIPPLE = (1 << 6), /* use stipple */ | ||||
| GPU_SHADER_LINE = (1 << 7), /* draw lines */ | GPU_SHADER_LINE = (1 << 7), /* draw lines */ | ||||
| GPU_SHADER_FLAT_NORMAL = (1 << 8), /* use flat normals */ | GPU_SHADER_FLAT_NORMAL = (1 << 8), /* use flat normals */ | ||||
| GPU_SHADER_OPTIONS_NUM = 9, | GPU_SHADER_OPTIONS_NUM = 9, | ||||
| GPU_SHADER_OPTION_COMBINATIONS = (1 << GPU_SHADER_OPTIONS_NUM) | GPU_SHADER_OPTION_COMBINATIONS = (1 << GPU_SHADER_OPTIONS_NUM) | ||||
| } GPUBasicShaderOption; | } GPUBasicShaderOption; | ||||
| /* Keep these in sync with gpu_shader_basic_frag.glsl */ | /* Keep these in sync with: | ||||
| * gpu_shader_basic_frag.glsl | |||||
| * gpu_shader_image_rect_stipple_frag.glsl | |||||
| * gpu_shader_image_stipple_frag.glsl | |||||
| **/ | |||||
| typedef enum GPUBasicShaderStipple { | typedef enum GPUBasicShaderStipple { | ||||
| GPU_SHADER_STIPPLE_HALFTONE = 0, | GPU_SHADER_STIPPLE_HALFTONE = 0, | ||||
| GPU_SHADER_STIPPLE_QUARTTONE = 1, | GPU_SHADER_STIPPLE_QUARTTONE = 1, | ||||
| GPU_SHADER_STIPPLE_CHECKER_8PX = 2, | GPU_SHADER_STIPPLE_CHECKER_8PX = 2, | ||||
| GPU_SHADER_STIPPLE_HEXAGON = 3, | GPU_SHADER_STIPPLE_HEXAGON = 3, | ||||
| GPU_SHADER_STIPPLE_DIAG_STRIPES = 4, | GPU_SHADER_STIPPLE_DIAG_STRIPES = 4, | ||||
| GPU_SHADER_STIPPLE_DIAG_STRIPES_SWAP = 5, | GPU_SHADER_STIPPLE_DIAG_STRIPES_SWAP = 5, | ||||
| GPU_SHADER_STIPPLE_S3D_INTERLACE_ROW = 6, | GPU_SHADER_STIPPLE_S3D_INTERLACE_ROW = 6, | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||