3#include "../Base/EffectsCommon.h"
14 return EffectHandle(
reinterpret_cast<int64_t
>(
new EffectTag()));
18 return EffectHandle(
reinterpret_cast<int64_t
>(
new EffectTag()));
22 delete reinterpret_cast<EffectTag*
>(effectHandle.
handle);
27 using EffectsCommon::load;
40 return EffectHandle(
reinterpret_cast<int64_t
>(
new EffectTag()));
virtual void annotateVS(EffectHandle, const StringView &) override
Associate a name with an object for use in graphics debugging.
virtual EffectHandle loadComputeEffect(const StringView &, const PreprocessorDefinitions &, EffectFlags::EEffectFlags) override
Load the compute shader with the given file name and create an effect.
virtual void annotatePS(EffectHandle, const StringView &) override
Associate a name with an object for use in graphics debugging.
virtual EffectHandle loadComputeEffect(const StringView &, EffectFlags::EEffectFlags) override
Load the compute shader with the given file name and create an effect.
virtual void annotateGS(EffectHandle, const StringView &) override
Associate a name with an object for use in graphics debugging.
virtual void releaseEffect(EffectHandle effectHandle) override
Release the effect with the given handle, freeing all resources generated during program loading.
virtual void releaseResources() override
Release all allocated effect resources.
virtual void annotateCS(EffectHandle, const StringView &) override
Associate a name with an object for use in graphics debugging.
virtual void annotate(EffectHandle, const StringView &) override
Associate a name with an object for use in graphics debugging.
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.
std::vector< PreprocessorDefinition > PreprocessorDefinitions
A set of preprocessor definitions.
Contains an effect description used to load a single effect.
EEffectFlags
Effect source flags.
handle_type handle
Internal resource handle.