EntropyCanvas::ShaderBundle
EntropyCanvas::ShaderBundle
Section titled “EntropyCanvas::ShaderBundle”Complete shader bundle for upload. More…
#include <ShaderAsset.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| size_t | totalSourceSize() const Get total source size (main + modules). |
| bool | hasModules() const Check if this bundle has any modules. |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| 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). |
Detailed Description
Section titled “Detailed Description”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).
Public Functions Documentation
Section titled “Public Functions Documentation”function totalSourceSize
Section titled “function totalSourceSize”inline size_t totalSourceSize() constGet total source size (main + modules).
function hasModules
Section titled “function hasModules”inline bool hasModules() constCheck if this bundle has any modules.
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable modules
Section titled “variable modules”std::map< std::string, std::string > modules;Bundled modules: moduleName -> source.
variable metadata
Section titled “variable metadata”ShaderMetadata metadata;Metadata extracted from source.
variable mainSource
Section titled “variable mainSource”std::string mainSource;Main shader entry point source (Slang).
variable assetId
Section titled “variable assetId”AssetId assetId;Computed asset ID (SHA-256 of bundle).
Updated on 2026-01-26 at 17:14:35 -0500