Skip to content

ShaderSource Class

Definition

Namespace: Brine2D.Rendering

Represents shader source code.

C#
public class ShaderSource

Inheritance System.Object → ShaderSource

Properties
Code Gets the shader source code or bytecode.
EntryPoint Gets the entry point function name.
Language Gets the shader language/format.
Stage Gets the shader stage.
Methods
FromHLSL\(string, ShaderStage, string\) Creates a shader source from HLSL string.
FromSPIRV\(byte\[\], ShaderStage, string\) Creates a shader source from SPIRV bytecode.