b2dLoadImageShader

Category: Shaders

Syntax:

b2dLoadImageShader:Int(filename:String)


Parameters

Returns

Int



Summary

Loads custom pixel shader for 2D images (GLSL source, compiled to SPIR-V at load, global shader state).

Takes filename (shader file path, string, GLSL source).

Returns shader handle (positive integer, use with b2dDrawImageEx), returns 0 on failure (file not found, compilation error, PSO creation failed).

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn