Unravel Engine C++ Reference
Loading...
Searching...
No Matches
render_pass.h
Go to the documentation of this file.
1#pragma once
2#include "frame_buffer.h"
3#include <string>
4#include <unordered_map>
5#include <vector>
6
7namespace gfx
8{
10{
11 static void push_scope(const char* name);
12 static void pop_scope();
13
14 //-----------------------------------------------------------------------------
15 // Name : render_pass ()
21 //-----------------------------------------------------------------------------
22 render_pass(const char* name);
23 render_pass(view_id id, const char* name);
24
25
26 //-----------------------------------------------------------------------------
27 // Name : bind ()
33 //-----------------------------------------------------------------------------
34 void bind(const frame_buffer* fb = nullptr) const;
35 void touch() const;
36 //-----------------------------------------------------------------------------
37 // Name : clear ()
43 //-----------------------------------------------------------------------------
44 void clear(uint16_t _flags, uint32_t _rgba = 0x000000ff, float _depth = 1.0f, uint8_t _stencil = 0) const;
45
46 //-----------------------------------------------------------------------------
47 // Name : clear ()
53 //-----------------------------------------------------------------------------
54 void clear() const;
55
56 //-----------------------------------------------------------------------------
57 // Name : set_view_proj ()
63 //-----------------------------------------------------------------------------
64 void set_view_proj(const float* v, const float* p);
65
66 //-----------------------------------------------------------------------------
67 // Name : set_view_scissor ()
73 //-----------------------------------------------------------------------------
74 void set_view_scissor(uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height);
75 void set_view_rect(uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height);
76 //-----------------------------------------------------------------------------
77 // Name : reset ()
83 //-----------------------------------------------------------------------------
84 static void reset();
85
86 //-----------------------------------------------------------------------------
87 // Name : get_pass ()
93 //-----------------------------------------------------------------------------
94 static auto get_max_pass_id() -> gfx::view_id;
95
99};
100} // namespace gfx
std::string name
Definition hub.cpp:27
bgfx::ViewId view_id
Definition graphics.h:20
static auto get_last_frame_max_pass_id() -> gfx::view_id
void set_view_rect(uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height)
static void reset()
static auto get_max_pass_id() -> gfx::view_id
static void pop_scope()
void clear() const
void set_view_proj(const float *v, const float *p)
void set_view_scissor(uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height)
gfx::view_id id
Definition render_pass.h:98
render_pass(const char *name)
void touch() const
static void push_scope(const char *name)
void bind(const frame_buffer *fb=nullptr) const