Class GorgonPixelShader
A shader that operates on a single pixel (fragment) at a time on the GPU.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonPixelShader : GorgonShader, IGorgonNamedObject, IDisposable, IGorgonGraphicsObject
Remarks
A pixel shader is a program that is used to modify the color of a single pixel (aka fragment) at a time on the GPU. This allows for effects like blurring, or sampling texel data for display.
In Gorgon, shaders can be compiled from a string containing source code via the GorgonShaderFactory, or loaded from a Stream or file for quicker access. The
GorgonShaderFactory is required to compile or read shaders, they cannot be created via the new
keyword.
Properties
| Edit this page View SourceShaderType
Property to return the type of shader.
Declaration
public override ShaderType ShaderType { get; }
Property Value
Type | Description |
---|---|
ShaderType |
Overrides
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()