GLSL (glslangValidator) and Slang shader compilation, pure-MoonBit SPIR-V reflection, and PPM/BMP image loading helpers for Tycho
pub(all) struct ReflectedBinding {
set : Int
binding : Int
kind : ReflectedDescriptorKind
count : Int
name : String
} derive(Eq, Debug)pub(all) struct ReflectedVertexInput {
location : Int
format : ReflectedVertexFormat
name : String
} derive(Eq, Debug)pub(all) struct SpirvReflection {
stage : ReflectedStage
entry_point : String
vertex_inputs : Array[ReflectedVertexInput]
bindings : Array[ReflectedBinding]
push_constant_size : Int
color_output_count : Int
local_size : (Int, Int, Int)
}fn compile_shader_env(source : String, kind : UInt, env : UInt) -> FixedArray[UInt]fn compile_shader_file_env(path : String, kind : UInt, env : UInt) -> FixedArray[UInt]fn save_png(path : String, width : Int, height : Int, rgba : FixedArray[Byte], bgra? : Bool) -> BoolInstall
Download zipGLSL (glslangValidator) and Slang shader compilation, pure-MoonBit SPIR-V reflection, and PPM/BMP image loading helpers for Tycho