ShaderCompileSystem Class Template
System that batches shader compile requests for active shader entities. More...
Declaration
Public Member Typedefs Index
template < ... > | |
| using | EngineRoleTag = SystemRole |
template < ... > | |
| using | CommandBuffer_type = TCommandBuffer |
Public Constructors Index
template < ... > | |
| ShaderCompileSystem (size_t capacity=TCapacity) | |
Public Member Functions Index
template < ... > | |
| void | update (UpdateContext &updateContext, TCommandBuffer &cmdBuffer) noexcept |
|
Collects active shader handles and queues one batch compile command. More... | |
Private Member Attributes Index
template < ... > | |
| std::vector< THandle > | shaderHandles_ |
template < ... > | |
| size_t | capacity_ |
Description
System that batches shader compile requests for active shader entities.
- Template Parameters
-
THandle Shader handle type.
TCommandBuffer Command buffer type used for queued compile commands.
TCapacity Initial reserve size for the internal handle cache.
Definition at line 48 of file ShaderCompileSystem.ixx.
Public Member Typedefs
CommandBuffer_type
|
Definition at line 57 of file ShaderCompileSystem.ixx.
EngineRoleTag
|
Definition at line 56 of file ShaderCompileSystem.ixx.
Public Constructors
ShaderCompileSystem()
| inline explicit |
Definition at line 59 of file ShaderCompileSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Collects active shader handles and queues one batch compile command.
- Parameters
-
updateContext Frame update context.
Definition at line 68 of file ShaderCompileSystem.ixx.
Private Member Attributes
capacity_
|
Definition at line 52 of file ShaderCompileSystem.ixx.
shaderHandles_
|
Definition at line 50 of file ShaderCompileSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.