コード例 #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);
        }
コード例 #2
0
        public override Shader CreateShader(ref ShaderDescription description)
        {
            StagingBlock stagingBlock = _pool.Stage(description.ShaderBytes);

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

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