Gorgon
Show / Hide Table of Contents

Interface IGorgonGBuffer

Defines a gbuffer for use with deferred rendering scenarios.

Namespace: Gorgon.Renderers.Techniques
Assembly: Gorgon.Graphics.Core.dll
Syntax
public interface IGorgonGBuffer

Properties

| Edit this page View Source

Diffuse

Property to return the diffuse texture for the gbuffer.

Declaration
GorgonTexture2DView Diffuse { get; }
Property Value
Type Description
GorgonTexture2DView
| Edit this page View Source

DiffuseTarget

Property to return the diffuse render target for the gbuffer.

Declaration
GorgonRenderTarget2DView DiffuseTarget { get; }
Property Value
Type Description
GorgonRenderTarget2DView
| Edit this page View Source

GBufferTexture

Property to return the entire gbuffer texture (all array indices).

Declaration
GorgonTexture2DView GBufferTexture { get; }
Property Value
Type Description
GorgonTexture2DView
| Edit this page View Source

Normal

Property to return the normal map texture for the gbuffer.

Declaration
GorgonTexture2DView Normal { get; }
Property Value
Type Description
GorgonTexture2DView
| Edit this page View Source

NormalTarget

Property to return the normal map render target for the gbuffer.

Declaration
GorgonRenderTarget2DView NormalTarget { get; }
Property Value
Type Description
GorgonRenderTarget2DView
| Edit this page View Source

Position

Property to return the position texture for the gbuffer.

Declaration
GorgonTexture2DView Position { get; }
Property Value
Type Description
GorgonTexture2DView
| Edit this page View Source

PositionTarget

Property to return the position render target for the gbuffer.

Declaration
GorgonRenderTarget2DView PositionTarget { get; }
Property Value
Type Description
GorgonRenderTarget2DView
| Edit this page View Source

Specular

Property to return the specular texture for the gbuffer.

Declaration
GorgonTexture2DView Specular { get; }
Property Value
Type Description
GorgonTexture2DView
| Edit this page View Source

SpecularTarget

Property to return the specular render target for the gbuffer.

Declaration
GorgonRenderTarget2DView SpecularTarget { get; }
Property Value
Type Description
GorgonRenderTarget2DView

Methods

| Edit this page View Source

ClearGBuffer()

Function to clear the GBuffer.

Declaration
void ClearGBuffer()
| Edit this page View Source

Resize(int, int)

Function to update the gbuffer to a new width and height.

Declaration
void Resize(int width, int height)
Parameters
Type Name Description
int width

The width of the gbuffer texture.

int height

The height of the gbuffer texture.

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