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 SourceDiffuse
Property to return the diffuse texture for the gbuffer.
Declaration
GorgonTexture2DView Diffuse { get; }
Property Value
Type | Description |
---|---|
GorgonTexture2DView |
DiffuseTarget
Property to return the diffuse render target for the gbuffer.
Declaration
GorgonRenderTarget2DView DiffuseTarget { get; }
Property Value
Type | Description |
---|---|
GorgonRenderTarget2DView |
GBufferTexture
Property to return the entire gbuffer texture (all array indices).
Declaration
GorgonTexture2DView GBufferTexture { get; }
Property Value
Type | Description |
---|---|
GorgonTexture2DView |
Normal
Property to return the normal map texture for the gbuffer.
Declaration
GorgonTexture2DView Normal { get; }
Property Value
Type | Description |
---|---|
GorgonTexture2DView |
NormalTarget
Property to return the normal map render target for the gbuffer.
Declaration
GorgonRenderTarget2DView NormalTarget { get; }
Property Value
Type | Description |
---|---|
GorgonRenderTarget2DView |
Position
Property to return the position texture for the gbuffer.
Declaration
GorgonTexture2DView Position { get; }
Property Value
Type | Description |
---|---|
GorgonTexture2DView |
PositionTarget
Property to return the position render target for the gbuffer.
Declaration
GorgonRenderTarget2DView PositionTarget { get; }
Property Value
Type | Description |
---|---|
GorgonRenderTarget2DView |
Specular
Property to return the specular texture for the gbuffer.
Declaration
GorgonTexture2DView Specular { get; }
Property Value
Type | Description |
---|---|
GorgonTexture2DView |
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 SourceClearGBuffer()
Function to clear the GBuffer.
Declaration
void ClearGBuffer()
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. |