Пример #1
0
        internal ShaderProgram(ProgramHandle program, IReadOnlyList <string> samplers, IReadOnlyList <string> _params)
        {
            this.Program = program;

            BuildSamplersList(samplers);

            BuildParametersList(_params);
        }
Пример #2
0
        internal ShaderProgram(ProgramHandle program, IReadOnlyList <string> samplers, IReadOnlyList <string> @params)
        {
            Program = program;

            _textures = new Texture2D[samplers.Count];

            BuildSamplersList(samplers);

            BuildParametersList(@params);
        }
Пример #3
0
 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));
 }
Пример #4
0
 public static void DestroyProgram(ProgramHandle shader_program)
 {
     Bgfx.destroy_program(shader_program);
 }