Unravel Engine C++ Reference
Loading...
Searching...
No Matches
gfx::render_pass Struct Reference

#include <render_pass.h>

Public Member Functions

 render_pass (const char *name)
 
 render_pass (view_id id, const char *name)
 
void bind (const frame_buffer *fb=nullptr) const
 
void touch () const
 
void clear (uint16_t _flags, uint32_t _rgba=0x000000ff, float _depth=1.0f, uint8_t _stencil=0) const
 
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)
 
void set_view_rect (uint16_t _x, uint16_t _y, uint16_t _width, uint16_t _height)
 

Static Public Member Functions

static void push_scope (const char *name)
 
static void pop_scope ()
 
static void reset ()
 
static auto get_max_pass_id () -> gfx::view_id
 
static auto get_last_frame_max_pass_id () -> gfx::view_id
 

Public Attributes

gfx::view_id id
 

Detailed Description

Definition at line 9 of file render_pass.h.

Constructor & Destructor Documentation

◆ render_pass() [1/2]

gfx::render_pass::render_pass ( const char * name)

Definition at line 52 of file render_pass.cpp.

◆ render_pass() [2/2]

gfx::render_pass::render_pass ( view_id id,
const char * name )

Definition at line 56 of file render_pass.cpp.

Member Function Documentation

◆ bind()

void gfx::render_pass::bind ( const frame_buffer * fb = nullptr) const

Definition at line 80 of file render_pass.cpp.

◆ clear() [1/2]

void gfx::render_pass::clear ( ) const

Definition at line 114 of file render_pass.cpp.

◆ clear() [2/2]

void gfx::render_pass::clear ( uint16_t _flags,
uint32_t _rgba = 0x000000ff,
float _depth = 1.0f,
uint8_t _stencil = 0 ) const

Definition at line 105 of file render_pass.cpp.

◆ get_last_frame_max_pass_id()

auto gfx::render_pass::get_last_frame_max_pass_id ( ) -> gfx::view_id
static

Definition at line 147 of file render_pass.cpp.

◆ get_max_pass_id()

auto gfx::render_pass::get_max_pass_id ( ) -> gfx::view_id
static

Definition at line 141 of file render_pass.cpp.

◆ pop_scope()

void gfx::render_pass::pop_scope ( )
static

Definition at line 47 of file render_pass.cpp.

◆ push_scope()

void gfx::render_pass::push_scope ( const char * name)
static

Definition at line 42 of file render_pass.cpp.

◆ reset()

void gfx::render_pass::reset ( )
static

Definition at line 134 of file render_pass.cpp.

◆ set_view_proj()

void gfx::render_pass::set_view_proj ( const float * v,
const float * p )

Definition at line 119 of file render_pass.cpp.

◆ set_view_rect()

void gfx::render_pass::set_view_rect ( uint16_t _x,
uint16_t _y,
uint16_t _width,
uint16_t _height )

Definition at line 129 of file render_pass.cpp.

◆ set_view_scissor()

void gfx::render_pass::set_view_scissor ( uint16_t _x,
uint16_t _y,
uint16_t _width,
uint16_t _height )

Definition at line 124 of file render_pass.cpp.

◆ touch()

void gfx::render_pass::touch ( ) const

Definition at line 100 of file render_pass.cpp.

Member Data Documentation

◆ id

gfx::view_id gfx::render_pass::id

Definition at line 98 of file render_pass.h.


The documentation for this struct was generated from the following files: