class RenderTexture

Inherits: RenderTarget

Render target specialization that allows you to render into one or multiple textures.

Such textures can then be used in other operations as GPU program input.

Public

Methods

~RenderTexture

virtual ~RenderTexture() noexcept = default

staticCreate

static SPtr<RenderTexture> Create(const TextureCreateInformation &textureCreateInformation, bool createDepth = true, PixelFormat depthStencilFormat = PF_D32)

Creates a new RenderTexture and automatically generates a single color surface and (optionally) a depth/stencil surface.

colorDesc
Description of the color surface to create.
createDepth
Determines will a depth/stencil buffer of the same size as the color buffer be created for the render texture.
depthStencilFormat
Format of the depth/stencil buffer if enabled.

staticCreate

static SPtr<RenderTexture> Create(const RenderTextureCreateInformation &createInformation)

Creates a new RenderTexture and automatically generates a single color surface and (optionally) a depth/stencil surface.

colorDesc
Description of the color surface to create.
createDepth
Determines will a depth/stencil buffer of the same size as the color buffer be created for the render texture.
depthStencilFormat
Format of the depth/stencil buffer if enabled.

GetColorTexture

const HTexture &GetColorTexture(u32 idx) const

Returns a color surface texture you may bind as an input to an GPU program.

GetDepthStencilTexture

const HTexture &GetDepthStencilTexture() const

Returns a depth/stencil surface texture you may bind as an input to an GPU program.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Protected

Constructors

RenderTexture

RenderTexture(const RenderTextureCreateInformation &createInformation)

Methods

CreateRenderProxy

SPtr<render::RenderProxy> CreateRenderProxy() const override

Creates an object that contains render thread specific data and methods for this object.

Can be null if such object is not required.

CreateRenderProxySyncPacket

RenderProxySyncPacket *CreateRenderProxySyncPacket(FrameAllocator &allocator, u32 flags) override

Creates a data packet that will be used for syncing the core object with it's render proxy.

Caller must free the retrieved packet using the provided allocator when done using it.

Fields

mBindableColorTex

HTexture[8] mBindableColorTex

mBindableDepthStencilTex

HTexture mBindableDepthStencilTex

mInformation