Class RenderTexture

Namespace
Elegy.RenderSystem.Resources
Assembly
Elegy.RenderSystem.dll
public class RenderTexture : ITexture
Inheritance
RenderTexture
Implements
Inherited Members

Constructors

RenderTexture(GraphicsDevice, in TextureMetadata, in Span<byte>)

public RenderTexture(GraphicsDevice device, in TextureMetadata data, in Span<byte> bytes)

Parameters

device GraphicsDevice
data TextureMetadata
bytes Span<byte>

Properties

Depth

public int Depth { get; }

Property Value

int

DeviceTexture

public Texture DeviceTexture { get; set; }

Property Value

Texture

Height

public int Height { get; }

Property Value

int

Width

public int Width { get; }

Property Value

int

Methods

BlitTo(CommandList, RenderTexture)

public void BlitTo(CommandList commands, RenderTexture other)

Parameters

commands CommandList
other RenderTexture

Dispose()

public void Dispose()

ReadPixels()

public Span<byte> ReadPixels()

Returns

Span<byte>

UpdatePixels(Span<byte>)

public void UpdatePixels(Span<byte> newPixels)

Parameters

newPixels Span<byte>