Category: Shaders
Syntax:
b2dLoadTextShader:Int(filename:String)
Int
Loads custom pixel shader for 2D text rendering (.hlsl runtime compile or .cso precompiled, ps_5_0, global text shader state).
Takes filename (shader file path, string, .hlsl or .cso extension).
Returns shader handle (positive integer, use with b2dDrawTextEx), returns 0 on failure (file not found, compilation error, PSO creation failed).
View detailed documentation online
;No example implemented yet
BambooBasic © 2026 Michael Denathorn