wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::gui Namespace Reference

Classes

struct  Inputs
 
class  Instance
 
class  Renderer
 
struct  UBO
 
struct  Vertex
 
struct  Window
 

Variables

static const std::size_t MAX_VERTICES = 10000
 
static const std::size_t MAX_INDICES = MAX_VERTICES * 10
 
constexpr std::string_view VERTEX_SHADER
 
constexpr std::string_view FRAGMENT_SHADER
 

Variable Documentation

◆ FRAGMENT_SHADER

constexpr std::string_view wren::gui::FRAGMENT_SHADER
constexpr
Initial value:
= R"(
#version 450
layout(location = 0) in vec4 in_colour;
layout(location = 0) out vec4 out_colour;
void main() {
out_colour = in_colour;
}
)"

◆ MAX_INDICES

const std::size_t wren::gui::MAX_INDICES = MAX_VERTICES * 10
static

◆ MAX_VERTICES

const std::size_t wren::gui::MAX_VERTICES = 10000
static

◆ VERTEX_SHADER

constexpr std::string_view wren::gui::VERTEX_SHADER
constexpr
Initial value:
= R"(
#version 450
layout(location = 0) in vec2 in_position;
layout(location = 1) in vec4 in_colour;
layout(binding = 0) uniform UBO {
mat4 proj;
} ubo;
layout(location = 0) out vec4 out_colour;
void main () {
gl_Position = ubo.proj * vec4(in_position, 0.0, 1.0);
out_colour = in_colour;
}
)"