#include <program.h>
|
| program ()=default |
|
| program (const shader &compute_shader) |
|
| program (const shader &vertex_shader, const shader &fragment_shader) |
|
void | set_texture (uint8_t _stage, const hpp::string_view &_sampler, const gfx::frame_buffer *_handle, uint8_t _attachment=0, uint32_t _flags=std::numeric_limits< uint32_t >::max()) |
|
void | set_texture (uint8_t _stage, const hpp::string_view &_sampler, const gfx::texture *_texture, uint32_t _flags=std::numeric_limits< uint32_t >::max()) |
|
void | set_uniform (const hpp::string_view &_name, const void *_value, uint16_t _num=1) |
|
auto | get_uniform (const hpp::string_view &_name, uint8_t stage=uint8_t(-1)) -> uniform_ptr |
|
Public Member Functions inherited from gfx::handle_impl< program, program_handle > |
| ~handle_impl () |
|
void | dispose () |
|
auto | is_valid () const -> bool |
|
auto | native_handle () const -> program_handle |
|
Definition at line 17 of file program.h.
◆ uniform_ptr
◆ program() [1/3]
gfx::program::program |
( |
| ) |
|
|
default |
◆ program() [2/3]
gfx::program::program |
( |
const shader & | compute_shader | ) |
|
◆ program() [3/3]
gfx::program::program |
( |
const shader & | vertex_shader, |
|
|
const shader & | fragment_shader ) |
◆ get_uniform()
auto gfx::program::get_uniform |
( |
const hpp::string_view & | _name, |
|
|
uint8_t | stage = uint8_t(-1) ) -> uniform_ptr |
◆ set_texture() [1/2]
void gfx::program::set_texture |
( |
uint8_t | _stage, |
|
|
const hpp::string_view & | _sampler, |
|
|
const gfx::frame_buffer * | _handle, |
|
|
uint8_t | _attachment = 0, |
|
|
uint32_t | _flags = std::numeric_limits<uint32_t>::max() ) |
◆ set_texture() [2/2]
void gfx::program::set_texture |
( |
uint8_t | _stage, |
|
|
const hpp::string_view & | _sampler, |
|
|
const gfx::texture * | _texture, |
|
|
uint32_t | _flags = std::numeric_limits<uint32_t>::max() ) |
◆ set_uniform()
void gfx::program::set_uniform |
( |
const hpp::string_view & | _name, |
|
|
const void * | _value, |
|
|
uint16_t | _num = 1 ) |
◆ textures_uniforms
std::array<uniform_ptr, 64> gfx::program::textures_uniforms |
◆ uniforms
std::map<std::string, uniform_ptr, std::less<> > gfx::program::uniforms |
All uniforms for this program.
Definition at line 98 of file program.h.
The documentation for this struct was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/core/graphics/program.h
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/core/graphics/program.cpp