CF_ShaderBytecode¶
Category: graphics
GitHub: cute_shader_bytecode.h
A SPIR-V shader bytecode blob.
| Struct Members | Description |
|---|---|
const uint8_t* content |
The SPIR-V bytecode. |
size_t size |
Size of the bytecode blob. |
const char* glsl300_src |
The transpiled GLSL 300 source for GLES 3 and WebGL 2. |
size_t glsl300_src_size |
Size of the GLSL 300 source. |
const char* hlsl_src |
The transpiled HLSL SM 5.1 source for D3D12 (compiled to DXBC by the system FXC at runtime). |
size_t hlsl_src_size |
Size of the HLSL source. |
const char* msl_src |
The transpiled MSL source for Metal (compiled by the OS at runtime; entry point "main0"). |
size_t msl_src_size |
Size of the MSL source. |
CF_ShaderInfo shader_info |
Shader reflection info. |
Remarks¶
This can be created either through cf_compile_shader_to_bytecode or the cute-shaderc compiler.
Related Pages¶
CF_Shader
cf_make_shader_from_bytecode
cf_compile_shader_to_bytecode