Blender  V2.93
gl_shader.cc File Reference
#include "BKE_global.h"
#include "BLI_string.h"
#include "BLI_vector.hh"
#include "GPU_platform.h"
#include "gl_backend.hh"
#include "gl_debug.hh"
#include "gl_vertex_buffer.hh"
#include "gl_shader.hh"
#include "gl_shader_interface.hh"

Go to the source code of this file.

Functions

GPUVertFormat from Shader
static uint calc_component_size (const GLenum gl_type)
 
static void get_fetch_mode_and_comp_type (int gl_type, GPUVertCompType *r_comp_type, GPUVertFetchMode *r_fetch_mode)
 

Function Documentation

◆ calc_component_size()

static uint calc_component_size ( const GLenum  gl_type)
static

Definition at line 327 of file gl_shader.cc.

Referenced by blender::gpu::GLShader::vertformat_from_shader().

◆ get_fetch_mode_and_comp_type()

static void get_fetch_mode_and_comp_type ( int  gl_type,
GPUVertCompType r_comp_type,
GPUVertFetchMode r_fetch_mode 
)
static