EntropyCanvas::ShaderAssetHeader
EntropyCanvas::ShaderAssetHeader
Section titled “EntropyCanvas::ShaderAssetHeader”Binary format header for shader assets. More…
#include <ShaderAsset.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| bool | isValid() const Validate the header magic number. |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| uint32_t | version Format version. |
| uint32_t | sourceOffset Offset to shader source (from start of file). |
| uint32_t | sourceLength Length of shader source in bytes. |
| uint32_t[4] | reserved Reserved for future use. |
| uint32_t | moduleTableOffset Offset to module table (from start of file). |
| uint32_t | moduleCount Number of bundled modules. |
| uint32_t | metadataOffset Offset to metadata JSON (from start of file). |
| uint32_t | metadataLength Length of metadata JSON in bytes. |
| uint32_t | magic Magic number: “ESHR” (Entropy Shader). |
Detailed Description
Section titled “Detailed Description”struct EntropyCanvas::ShaderAssetHeader;Binary format header for shader assets.
Used for persistent storage and network transfer. Layout: Header + Source + Metadata (JSON)
Public Functions Documentation
Section titled “Public Functions Documentation”function isValid
Section titled “function isValid”inline bool isValid() constValidate the header magic number.
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable version
Section titled “variable version”uint32_t version = 1;Format version.
variable sourceOffset
Section titled “variable sourceOffset”uint32_t sourceOffset = 0;Offset to shader source (from start of file).
variable sourceLength
Section titled “variable sourceLength”uint32_t sourceLength = 0;Length of shader source in bytes.
variable reserved
Section titled “variable reserved”uint32_t[4] reserved = {0, 0, 0, 0};Reserved for future use.
variable moduleTableOffset
Section titled “variable moduleTableOffset”uint32_t moduleTableOffset = 0;Offset to module table (from start of file).
variable moduleCount
Section titled “variable moduleCount”uint32_t moduleCount = 0;Number of bundled modules.
variable metadataOffset
Section titled “variable metadataOffset”uint32_t metadataOffset = 0;Offset to metadata JSON (from start of file).
variable metadataLength
Section titled “variable metadataLength”uint32_t metadataLength = 0;Length of metadata JSON in bytes.
variable magic
Section titled “variable magic”uint32_t magic = 0x52485345;Magic number: “ESHR” (Entropy Shader).
Updated on 2026-01-26 at 17:14:35 -0500