API ReferenceSandbox.Rendering

ViewHandleclass

Deferred metadata for a view recorded into a command list. Bind these references after its draw command in the same command-list execution. Values are resolved anew on each playback, not while recording. Keep the target textures alive and unchanged until their consumers have drawn.

object→ViewHandle
Namespace
Sandbox.Rendering
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Rendering.ViewHandle

Properties5

Showing 5 properties

public Sandbox.Rendering.ViewHandle.DepthRangeRef Sandbox.Rendering.ViewHandle.DepthRange { get; set; }PUBLICGETSET

Minimum and maximum main-world depth values. Normalize sampled depth to this range before unprojection.

Returns:DepthRangeRef—

public Sandbox.Rendering.ViewHandle.IsValidRef Sandbox.Rendering.ViewHandle.IsValid { get; set; }PUBLICGETSET

Whether this command submitted a view during the current playback. False for skipped views; this does not indicate whether a depth target was supplied.

Returns:IsValidRef—

public Sandbox.Rendering.ViewHandle.ViewportRef Sandbox.Rendering.ViewHandle.Viewport { get; set; }PUBLICGETSET

Main-world viewport origin (xy) and size (zw) in unflipped depth texture UVs.

Returns:ViewportRef—

On this page