Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_texture.h
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | typedef enum eGPUSamplerState { | ||||
| GPU_SAMPLER_REPEAT_T = (1 << 3), | GPU_SAMPLER_REPEAT_T = (1 << 3), | ||||
| GPU_SAMPLER_REPEAT_R = (1 << 4), | GPU_SAMPLER_REPEAT_R = (1 << 4), | ||||
| GPU_SAMPLER_CLAMP_BORDER = (1 << 5), /* Clamp to border color instead of border texel. */ | GPU_SAMPLER_CLAMP_BORDER = (1 << 5), /* Clamp to border color instead of border texel. */ | ||||
| GPU_SAMPLER_COMPARE = (1 << 6), | GPU_SAMPLER_COMPARE = (1 << 6), | ||||
| GPU_SAMPLER_ANISO = (1 << 7), | GPU_SAMPLER_ANISO = (1 << 7), | ||||
| GPU_SAMPLER_ICON = (1 << 8), | GPU_SAMPLER_ICON = (1 << 8), | ||||
| GPU_SAMPLER_REPEAT = (GPU_SAMPLER_REPEAT_S | GPU_SAMPLER_REPEAT_T | GPU_SAMPLER_REPEAT_R), | GPU_SAMPLER_REPEAT = (GPU_SAMPLER_REPEAT_S | GPU_SAMPLER_REPEAT_T | GPU_SAMPLER_REPEAT_R), | ||||
| /* Don't use that. */ | |||||
| GPU_SAMPLER_MAX = (GPU_SAMPLER_ICON + 1), | |||||
| } eGPUSamplerState; | } eGPUSamplerState; | ||||
| static const int GPU_SAMPLER_MAX = (GPU_SAMPLER_ICON + 1); | |||||
fclem: put a comment explaining why it's out of the enum. | |||||
| ENUM_OPERATORS(eGPUSamplerState, GPU_SAMPLER_REPEAT) | ENUM_OPERATORS(eGPUSamplerState, GPU_SAMPLER_ICON) | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| void GPU_samplers_update(void); | void GPU_samplers_update(void); | ||||
| /* GPU Texture | /* GPU Texture | ||||
| ▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines | |||||
put a comment explaining why it's out of the enum.