internal ShaderProgram(ProgramHandle program, IReadOnlyList <string> samplers, IReadOnlyList <string> _params) { this.Program = program; BuildSamplersList(samplers); BuildParametersList(_params); }
internal ShaderProgram(ProgramHandle program, IReadOnlyList <string> samplers, IReadOnlyList <string> @params) { Program = program; _textures = new Texture2D[samplers.Count]; BuildSamplersList(samplers); BuildParametersList(@params); }
public static void Submit(ushort viewId, ProgramHandle program, uint depth = 0, bool preserve_state = false) { Bgfx.submit(viewId, program, depth, (byte)(preserve_state ? 1 : 0)); }
public static void DestroyProgram(ProgramHandle shader_program) { Bgfx.destroy_program(shader_program); }