Skip to main content

IsCommandBufferLike.ixx File

Concept constraining types usable as command buffers. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine
namespaceruntime
namespacemessaging
namespacecommand
namespaceconcepts

Description

Concept constraining types usable as command buffers.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <concepts>
8
9export module helios.engine.runtime.messaging.command.concepts.IsCommandBufferLike;
10
11import helios.engine.runtime.concepts.HasTag;
12import helios.engine.runtime.concepts.HasClear;
13
14import helios.engine.runtime.world.UpdateContext;
15
16import helios.engine.runtime.messaging.command.tags.CommandBufferRole;
17
18
21using namespace helios::engine::runtime::concepts;
22export namespace helios::engine::runtime::messaging::command::concepts {
23
37 template<class T>
38 concept IsCommandBufferLike = requires(T& t, UpdateContext& updateContext) {
39 {t.flush(updateContext) } -> std::same_as<void>;
41}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.