Show / Hide Table of Contents

Class Framebuffer

A device resource used to control which color and depth textures are rendered to. See FramebufferDescription.

Inheritance
System.Object
Framebuffer
Implements
DeviceResource
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public abstract class Framebuffer : DeviceResource, IDisposable

Properties

ColorTargets

Gets the collection of color attachments associated with this instance. May be empty.

Declaration
public virtual IReadOnlyList<FramebufferAttachment> ColorTargets { get; }
Property Value
Type Description
IReadOnlyList<FramebufferAttachment>

DepthTarget

Gets the depth attachment associated with this instance. May be null if no depth texture is used.

Declaration
public virtual FramebufferAttachment? DepthTarget { get; }
Property Value
Type Description
System.Nullable<FramebufferAttachment>

Height

Gets the height of the Framebuffer.

Declaration
public virtual uint Height { get; }
Property Value
Type Description
System.UInt32

IsDisposed

A bool indicating whether this instance has been disposed.

Declaration
public abstract bool IsDisposed { get; }
Property Value
Type Description
System.Boolean

Name

A string identifying this instance. Can be used to differentiate between objects in graphics debuggers and other tools.

Declaration
public abstract string Name { get; set; }
Property Value
Type Description
System.String

OutputDescription

Gets an OutputDescription which describes the number and formats of the depth and color targets in this instance.

Declaration
public virtual OutputDescription OutputDescription { get; }
Property Value
Type Description
OutputDescription

Width

Gets the width of the Framebuffer.

Declaration
public virtual uint Width { get; }
Property Value
Type Description
System.UInt32

Methods

Dispose()

Frees unmanaged device resources controlled by this instance.

Declaration
public abstract void Dispose()

Implements

DeviceResource
System.IDisposable
Back to top