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

#include <shader.h>

Inheritance diagram for gfx::shader:
gfx::handle_impl< shader, shader_handle >

Public Member Functions

 shader ()=default
 
 shader (const memory_view *_mem)
 
 shader (const embedded_shader *_es, const char *name)
 
 shader (handle_type_t hndl)
 
- Public Member Functions inherited from gfx::handle_impl< shader, shader_handle >
 ~handle_impl ()
 
void dispose ()
 
auto is_valid () const -> bool
 
auto native_handle () const -> shader_handle
 

Public Attributes

std::vector< std::shared_ptr< uniform > > uniforms
 Uniforms for this shader.
 

Additional Inherited Members

- Public Types inherited from gfx::handle_impl< shader, shader_handle >
using ptr
 
using uptr
 
using weak_ptr
 
using handle_type_t
 
using base_type
 
- Static Public Member Functions inherited from gfx::handle_impl< shader, shader_handle >
static auto invalid_handle () -> shader_handle
 
- Protected Attributes inherited from gfx::handle_impl< shader, shader_handle >
shader_handle handle_
 

Detailed Description

Definition at line 9 of file shader.h.

Constructor & Destructor Documentation

◆ shader() [1/4]

gfx::shader::shader ( )
default

◆ shader() [2/4]

gfx::shader::shader ( const memory_view * _mem)

Definition at line 6 of file shader.cpp.

◆ shader() [3/4]

gfx::shader::shader ( const embedded_shader * _es,
const char * name )

Definition at line 10 of file shader.cpp.

◆ shader() [4/4]

gfx::shader::shader ( handle_type_t hndl)

Definition at line 15 of file shader.cpp.

Member Data Documentation

◆ uniforms

std::vector<std::shared_ptr<uniform> > gfx::shader::uniforms

Uniforms for this shader.

Definition at line 17 of file shader.h.


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