Skip to content

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.
CF_ShaderInfo shader_info Shader reflection info.

Remarks

This can be created either through cf_compile_shader_to_bytecode or the cute-shaderc compiler.

CF_Shader
cf_make_shader_from_bytecode
cf_compile_shader_to_bytecode