Gorgon
Show / Hide Table of Contents

Class GorgonRenderTargetView

A view to allow 2D texture based render targets to be bound to the pipeline.

Inheritance
object
GorgonResourceView
GorgonRenderTargetView
GorgonRenderTarget2DView
GorgonRenderTarget3DView
Implements
IDisposable
IGorgonGraphicsObject
IEquatable<GorgonResourceView>
Inherited Members
GorgonResourceView.Log
GorgonResourceView.OwnsResource
GorgonResourceView.IsDisposed
GorgonResourceView.Resource
GorgonResourceView.Usage
GorgonResourceView.Graphics
GorgonResourceView.Dispose()
GorgonResourceView.Equals(GorgonResourceView)
GorgonResourceView.Equals(object)
GorgonResourceView.GetHashCode()
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public abstract class GorgonRenderTargetView : GorgonResourceView, IDisposable, IGorgonGraphicsObject, IEquatable<GorgonResourceView>
Remarks

A render target view allows a render target (such as a GorgonSwapChain or a texture to be bound to the GPU pipeline as a render target resource.

The view can bind the entire resource, or a sub section of the resource as required. It will also allow for casting of the format to allow for reinterpreting the data stored within the the render target.

Constructors

| Edit this page View Source

GorgonRenderTargetView(GorgonGraphicsResource, BufferFormat, GorgonFormatInfo)

Initializes a new instance of the GorgonRenderTarget2DView class.

Declaration
protected GorgonRenderTargetView(GorgonGraphicsResource resource, BufferFormat format, GorgonFormatInfo formatInfo)
Parameters
Type Name Description
GorgonGraphicsResource resource

The resource to bind.

BufferFormat format

The format of the render target view.

GorgonFormatInfo formatInfo

Information about the format.

Exceptions
Type Condition
ArgumentNullException

Thrown when the resource, or the formatInfo parameter is null.

See Also
GorgonSwapChain
GorgonTexture2D
GorgonTexture3D

Properties

| Edit this page View Source

Binding

Property to return the flags to determine how the texture will be bound with the pipeline when rendering.

Declaration
public abstract TextureBinding Binding { get; }
Property Value
Type Description
TextureBinding
See Also
GorgonSwapChain
GorgonTexture2D
GorgonTexture3D
| Edit this page View Source

Format

Property to return the format used to interpret this view.

Declaration
public BufferFormat Format { get; }
Property Value
Type Description
BufferFormat
See Also
GorgonSwapChain
GorgonTexture2D
GorgonTexture3D
| Edit this page View Source

FormatInformation

Property to return information about the Format used by this view.

Declaration
public GorgonFormatInfo FormatInformation { get; }
Property Value
Type Description
GorgonFormatInfo
See Also
GorgonSwapChain
GorgonTexture2D
GorgonTexture3D
| Edit this page View Source

Height

Property to return the height of the render target view.

Declaration
public abstract int Height { get; }
Property Value
Type Description
int
See Also
GorgonSwapChain
GorgonTexture2D
GorgonTexture3D
| Edit this page View Source

Width

Property to return the width of the render target view.

Declaration
public abstract int Width { get; }
Property Value
Type Description
int
See Also
GorgonSwapChain
GorgonTexture2D
GorgonTexture3D

Methods

| Edit this page View Source

Clear(in GorgonColor)

Function to clear the contents of the render target for this view.

Declaration
public void Clear(in GorgonColor color)
Parameters
Type Name Description
GorgonColor color

Color to use when clearing the render target view.

Remarks

This will clear the render target view to the specified color.

See Also
GorgonSwapChain
GorgonTexture2D
GorgonTexture3D

Implements

IDisposable
IGorgonGraphicsObject
IEquatable<T>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)

See Also

GorgonSwapChain
GorgonTexture2D
GorgonTexture3D
  • 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