diff options
Diffstat (limited to 'source/blender/gpu/GPU_shader.h')
-rw-r--r-- | source/blender/gpu/GPU_shader.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/gpu/GPU_shader.h b/source/blender/gpu/GPU_shader.h index 62e1101a141..d339d0a2f81 100644 --- a/source/blender/gpu/GPU_shader.h +++ b/source/blender/gpu/GPU_shader.h @@ -44,12 +44,12 @@ struct GPUUniformBuffer; * - only for fragment shaders now * - must call texture bind before setting a texture as uniform! */ -typedef enum GPUShaderTFBType { +typedef enum eGPUShaderTFBType { GPU_SHADER_TFB_NONE = 0, /* Transform feedback unsupported. */ GPU_SHADER_TFB_POINTS = 1, GPU_SHADER_TFB_LINES = 2, GPU_SHADER_TFB_TRIANGLES = 3, -} GPUShaderTFBType; +} eGPUShaderTFBType; GPUShader *GPU_shader_create( const char *vertexcode, @@ -64,7 +64,7 @@ GPUShader *GPU_shader_create_ex( const char *geocode, const char *libcode, const char *defines, - const GPUShaderTFBType tf_type, + const eGPUShaderTFBType tf_type, const char **tf_names, const int tf_count, const char *shader_name); @@ -100,7 +100,7 @@ void GPU_shader_uniform_int(GPUShader *shader, int location, int value); int GPU_shader_get_attribute(GPUShader *shader, const char *name); /* Builtin/Non-generated shaders */ -typedef enum GPUBuiltinShader { +typedef enum eGPUBuiltinShader { /* specialized drawing */ GPU_SHADER_TEXT, GPU_SHADER_TEXT_SIMPLE, @@ -358,22 +358,22 @@ typedef enum GPUBuiltinShader { GPU_SHADER_3D_UNIFORM_SELECT_ID, GPU_NUM_BUILTIN_SHADERS /* (not an actual shader) */ -} GPUBuiltinShader; +} eGPUBuiltinShader; /** Keep these in sync with: * - `gpu_shader_image_interlace_frag.glsl` * - `gpu_shader_image_rect_interlace_frag.glsl` */ -typedef enum GPUInterlaceShader { +typedef enum eGPUInterlaceShader { GPU_SHADER_INTERLACE_ROW = 0, GPU_SHADER_INTERLACE_COLUMN = 1, GPU_SHADER_INTERLACE_CHECKER = 2, -} GPUInterlaceShader; +} eGPUInterlaceShader; -GPUShader *GPU_shader_get_builtin_shader(GPUBuiltinShader shader); +GPUShader *GPU_shader_get_builtin_shader(eGPUBuiltinShader shader); void GPU_shader_get_builtin_shader_code( - GPUBuiltinShader shader, + eGPUBuiltinShader shader, const char **r_vert, const char **r_frag, const char **r_geom, const char **r_defines); |