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); }
public override Shader CreateShader(ref ShaderDescription description) { StagingBlock stagingBlock = _pool.Stage(description.ShaderBytes); return(new OpenGLShader(_gd, description.Stage, stagingBlock)); }
protected override Shader CreateShaderCore(ref ShaderDescription description) { StagingBlock stagingBlock = _pool.Stage(description.ShaderBytes); return(new OpenGLShader(_gd, description.Stage, stagingBlock, description.EntryPoint)); }