RendererPlatform

Summary

Definition

Namespace: SDT4.Managed.Renderer
Assembly: SDT4.Managed.Renderer.dll

sealed class RendererPlatform
Inheritance:

ObjectRendererPlatform

Implements:

IRenderingCapability, ICapability

Fields

Name Type Description

Properties

Name Type Description
public get; Rhi IRhiBackend

Methods

public RenderCanvas CreateWindowRenderCanvas(Window window)

Summary

Creates a new render canvas associated with the window

Remarks

Warning

If already has a scene render instance, the existing is invalidated!

Parameters:

Returns:


public SceneRenderInstance CreateSceneRenderer(Scene scene)

Summary

Creates a new render instance that allows rendering the scene. Only ONE is allowed be created per scene.

Remarks

If already has a scene render instance, an is thrown.

Parameters:

Returns:


public MaterialInstance? CreateMaterialInstance(IMaterialAsset material)

Summary

Creates a material instance

Parameters:

Returns:


public Void DestroyMaterialInstance(MaterialInstance instance)

Summary

Releases a material instance

Parameters: