MapLibre Native Core
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
Typedefs
a
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerations
a
b
c
e
f
h
i
k
l
m
n
o
r
s
t
v
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Related Functions
a
b
e
i
m
o
s
t
Files
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
clipping_mask.hpp
Go to the documentation of this file.
1
// Generated code, do not modify this file!
2
// Generated on 2023-04-05T16:25:15.886Z by mwilsnd using shaders/generate_shader_code.js
3
4
#pragma once
5
#include <
mbgl/shaders/shader_source.hpp
>
6
7
namespace
mbgl
{
8
namespace
shaders {
9
10
template
<>
struct
ShaderSource
<
BuiltIn
::
ClippingMaskProgram
,
gfx::Backend::Type::OpenGL
> {
11
static
constexpr
const
char
* vertex = R
"(layout (location = 0) in vec2 a_pos;
12
13
uniform mat4 u_matrix;
14
15
void main() {
16
gl_Position = u_matrix * vec4(a_pos, 0, 1);
17
}
18
)";
19
static
constexpr
const
char
* fragment = R
"(void main() {
20
fragColor = vec4(1.0);
21
}
22
)";
23
};
24
25
}
// namespace shaders
26
}
// namespace mbgl
mbgl::gfx::Backend::Type::OpenGL
@ OpenGL
The OpenGL API backend.
mbgl::shaders::BuiltIn
BuiltIn
This enum is used with the ShaderSource template to select source code for the desired program and gr...
Definition:
shader_source.hpp:12
mbgl::shaders::BuiltIn::ClippingMaskProgram
@ ClippingMaskProgram
mbgl
Definition:
actor.hpp:15
shader_source.hpp
mbgl::shaders::ShaderSource
Select shader source based on a program type and a desired graphics API.
Definition:
shader_source.hpp:48
include
mbgl
shaders
gl
clipping_mask.hpp
MapLibre website
|
GitHub repository