le2d v0.4.6
2D game engine framework
 
Loading...
Searching...
No Matches
le::IShader Class Referenceabstract

Opaque interface for a Shader program. More...

#include <le2d/resource/shader.hpp>

Inheritance diagram for le::IShader:
le::IResource le::IAsset

Classes

struct  Modules
 

Public Types

using SpirV = std::span< std::uint32_t const >
 

Public Member Functions

virtual auto load (SpirV vertex, SpirV fragment) -> bool=0
 
virtual auto get_modules () const -> Modules=0
 
virtual auto get_hash () const -> std::size_t=0
 
- Public Member Functions inherited from le::IResource
virtual auto is_ready () const -> bool=0
 Check if resource is ready to use.
 

Detailed Description

Opaque interface for a Shader program.

Member Typedef Documentation

◆ SpirV

using le::IShader::SpirV = std::span<std::uint32_t const>

Member Function Documentation

◆ get_hash()

virtual auto le::IShader::get_hash ( ) const -> std::size_t
pure virtual

◆ get_modules()

virtual auto le::IShader::get_modules ( ) const -> Modules
pure virtual

◆ load()

virtual auto le::IShader::load ( SpirV  vertex,
SpirV  fragment 
) -> bool
pure virtual

The documentation for this class was generated from the following file: