vadgl ~master (2026-08-09T23:38:48.9439982)
Dub
Repo
to_gltype
vadgl
gl3
Undocumented in source.
GLType
to_gltype
(GLenum type)
template
to_gltype
(T)
template
to_gltype (
T
) {
import
std
.
string
:
toUpper
;
;
alias
TInfo
=
TypeInfoGLSL
!
T
;
enum
string
kind
;
alias
BT
=
TInfo
[
1
]
;
enum
size_t
N
;
enum
size_t
M
;
static immutable
static if
(
kind == "vector" && N <= 4
)
string
type_name
;
static if
(
kind == "vector" && N <= 4
)
enum
string
dims
;
static if
(
kind == "vector" && N <= 4
)
enum
string
prefix
;
}
Members
Aliases
BT
alias
BT
=
TInfo
[
1
]
Undocumented in source.
TInfo
alias
TInfo
=
TypeInfoGLSL
!
T
Undocumented in source.
Static variables
type_name
string
type_name
;
Undocumented in source.
Variables
M
enum
size_t
M
;
Undocumented in source.
N
enum
size_t
N
;
Undocumented in source.
dims
enum
string
dims
;
Undocumented in source.
kind
enum
string
kind
;
Undocumented in source.
prefix
enum
string
prefix
;
Undocumented in source.
Meta
Source
See Implementation
vadgl
gl3
functions
get_info_log
get_param
gl_attach_shader
gl_buffer_data
gl_buffer_sub_data
gl_clear
gl_clear_color
gl_compile_shader
gl_create_program
gl_create_shader
gl_draw_arrays_instanced
gl_draw_elements_instanced
gl_draw_range_elements
gl_enable_vertex_array_attributes
gl_enable_vertex_attributes
gl_link_program
gl_set_uniform
gl_shader_source
gl_uniform_matrix4fv
gl_use_program
gl_vertex_attrib_divisor
gl_vertex_attributeI_conf
gl_vertex_attribute_conf
gl_with
is_program_param
is_shader_param
set_uniform_mat4
to_gltype
manifest constants
MAX_GL_VARIABLE_NAME
static functions
gl_draw_arrays
gl_draw_elements
gl_get_attribute_location
gl_get_uniform_location
structs
GLAttributeInfo
GLUniform
Program
Shader
VArrayObject
VBufferObject
templates
gl_call
gl_wrap
glattribute
variables
checkGLCalls