Skip to content

EntropyCanvas::ShaderBundle

Complete shader bundle for upload. More…

#include <ShaderAsset.h>

Name
size_ttotalSourceSize() const
Get total source size (main + modules).
boolhasModules() const
Check if this bundle has any modules.
Name
std::map< std::string, std::string >modules
Bundled modules: moduleName -> source.
ShaderMetadatametadata
Metadata extracted from source.
std::stringmainSource
Main shader entry point source (Slang).
AssetIdassetId
Computed asset ID (SHA-256 of bundle).
struct EntropyCanvas::ShaderBundle;

Complete shader bundle for upload.

Contains the main shader source and all dependent modules. The AssetId is computed as SHA-256 of (mainSource + sorted modules).

inline size_t totalSourceSize() const

Get total source size (main + modules).

inline bool hasModules() const

Check if this bundle has any modules.

std::map< std::string, std::string > modules;

Bundled modules: moduleName -> source.

ShaderMetadata metadata;

Metadata extracted from source.

std::string mainSource;

Main shader entry point source (Slang).

AssetId assetId;

Computed asset ID (SHA-256 of bundle).


Updated on 2026-01-26 at 17:14:35 -0500