Gorgon
Show / Hide Table of Contents

Class GorgonComputeShader

A shader that performs mathematical and other operations in parallel using the GPU.

Inheritance
object
GorgonNamedObject
GorgonShader
GorgonComputeShader
Implements
IGorgonNamedObject
IDisposable
IGorgonGraphicsObject
Inherited Members
GorgonShader.ID
GorgonShader.IsDebug
GorgonShader.Graphics
GorgonShader.SaveToStream(Stream)
GorgonShader.SaveToFile(string)
GorgonShader.Save(Stream)
GorgonShader.Save(string)
GorgonNamedObject.GetHashCode()
GorgonNamedObject.ToString()
GorgonNamedObject.Name
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonComputeShader : GorgonShader, IGorgonNamedObject, IDisposable, IGorgonGraphicsObject
Remarks

A compute shader can be used to perform complex mathematical functions, or other algorithms in parallel using the GPU. This allows the application to leverage the speed of the GPU to perform number crunching that the CPU may not be able to handle in a timely manner.

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 Source

ShaderType

Property to return the type of shader.

Declaration
public override ShaderType ShaderType { get; }
Property Value
Type Description
ShaderType
Overrides
GorgonShader.ShaderType

Methods

| Edit this page View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public override void Dispose()
Overrides
GorgonShader.Dispose()

Implements

IGorgonNamedObject
IDisposable
IGorgonGraphicsObject

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author