Class MTLFrameBuffer
This class represents a native FrameBuffer object in Metal.
Inherited Members
Namespace: Evergine.Metal
Assembly: Evergine.Metal.dll
Syntax
public class MTLFrameBuffer : FrameBuffer, ILoadable, IDependencyObject
Constructors
MTLFrameBuffer(MTLGraphicsContext, FrameBufferAttachment?, FrameBufferAttachment[], bool)
Initializes a new instance of the MTLFrameBuffer class.
Declaration
public MTLFrameBuffer(MTLGraphicsContext context, FrameBufferAttachment? depthTarget, FrameBufferAttachment[] colorTargets, bool disposeAttachments)
Parameters
Type | Name | Description |
---|---|---|
MTLGraphicsContext | context | The graphics context. |
FrameBufferAttachment? | depthTarget | The depth texture, which must have been created with the DepthStencil flag. |
FrameBufferAttachment[] | colorTargets | The array of color textures, all of which must have been created with the RenderTarget flags. |
bool | disposeAttachments | When this framebuffer is disposed, dispose of the attachment textures too. |
Fields
ColorTargetTextures
An array of color target textures.
Declaration
public MTLTexture[] ColorTargetTextures
Field Value
Type | Description |
---|---|
MTLTexture[] |
DepthTargetTexture
The depth target texture.
Declaration
public MTLTexture DepthTargetTexture
Field Value
Type | Description |
---|---|
MTLTexture |
Properties
Name
Gets or sets a string identifying this instance. It can be used in graphics debuggers tools.
Declaration
public override string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
Dispose(bool)
Releases unmanaged and optionally managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|