RendererPlatform
Summary
Definition
Namespace: SDT4.Managed.Renderer
Assembly: SDT4.Managed.Renderer.dll
sealed class RendererPlatform
Inheritance:
Object ➔ RendererPlatform
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
Parameters:
window(Window):
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
Parameters:
scene(Scene): Scene to base the render instance
Returns:
- SceneRenderInstance: A new render instance for the scene.
public MaterialInstance? CreateMaterialInstance(IMaterialAsset material)
Summary
Creates a material instance
Parameters:
material(IMaterialAsset): Material to create an instance out of
Returns:
- MaterialInstance?: A new material instance based on
. If the renderer failed to allocate an instance, it will return null.
public Void DestroyMaterialInstance(MaterialInstance instance)
Summary
Releases a material instance
Parameters:
instance(MaterialInstance): Instance to free