Duality.Resources.ShaderProgram.AttachShaders C# (CSharp) Method

AttachShaders() public method

Re-Attaches the currently used VertexShader">Vertex- and
public AttachShaders ( ) : void
return void
        public void AttachShaders()
        {
            this.AttachShaders(this.vert, this.frag, this.geom);
        }

Same methods

ShaderProgram::AttachShaders ( ContentRef v, ContentRef f, ContentRef g = newContentRef<GeometryShader>() ) : void

Usage Example

Esempio n. 1
0
        protected override void OnCopyDataTo(object target, ICloneOperation operation)
        {
            base.OnCopyDataTo(target, operation);
            ShaderProgram targetShader = target as ShaderProgram;

            targetShader.AttachShaders();
            targetShader.Compile();
        }
All Usage Examples Of Duality.Resources.ShaderProgram::AttachShaders