Skip to main content

Module consts

Module consts 

Source
Expand description

Constants for asset paths, cache magic, shader/mesh metadata.

These are used by [optic_file] and [optic_render] to resolve asset locations and validate cache files.

Constantsยง

ASSET
Root asset directory.
FRAG
Fragment shader file extension.
GLSL
GLSL shader file extension.
MESH_ASSET
Mesh asset directory.
MESH_FLAG_HAS_NORMALS
Bitflag: mesh has normal data.
MESH_FLAG_HAS_UVS
Bitflag: mesh has UV data.
OBJ
Wavefront OBJ mesh file extension.
OMESH
Optic cached mesh extension.
OPTIC_CACHE_VERSION
Version of the binary cache format.
OPTIC_MAGIC
Magic signature for all optic engine binary cache files (8 bytes).
OSHDR
Optic cached shader extension.
OTXTR
Optic cached texture extension.
PNG
PNG image file extension.
SHADER_COMPUTE
Shader file sub-type discriminator for compute shaders.
SHADER_PIPELINE
Shader file sub-type discriminator for pipeline shaders.
SHDR_ASSET
Shader asset directory.
TEMP
Temporary asset directory.
TXTR_ASSET
Texture asset directory.
VERT
Vertex shader file extension.