Skip to content

IShaderLoader.LoadFromSource(ShaderSource) Method

Definition

Namespace: Brine2D.Rendering

Loads a shader from source code (HLSL) or bytecode (SPIRV). ShaderCross will automatically transpile to the correct format for the current GPU backend.

Brine2D.Rendering.IShader LoadFromSource(Brine2D.Rendering.ShaderSource source);

Parameters

source ShaderSource

Returns

IShader