Example #1
0
        protected override Shader CreateShaderCore(ref ShaderDescription description)
        {
            StagingBlock stagingBlock = _pool.Stage(description.ShaderBytes);
            OpenGLShader shader       = new OpenGLShader(_gd, description.Stage, stagingBlock, description.EntryPoint);

            _gd.EnsureResourceInitialized(shader);
            return(shader);
        }
Example #2
0
        public override Shader CreateShader(ref ShaderDescription description)
        {
            StagingBlock stagingBlock = _pool.Stage(description.ShaderBytes);

            return(new OpenGLShader(_gd, description.Stage, stagingBlock));
        }
Example #3
0
        protected override Shader CreateShaderCore(ref ShaderDescription description)
        {
            StagingBlock stagingBlock = _pool.Stage(description.ShaderBytes);

            return(new OpenGLShader(_gd, description.Stage, stagingBlock, description.EntryPoint));
        }