s&box docs

public class Sandbox.Rendering.CommandList.AttributeAccess

Methods

Showing 25 methods

public Sandbox.RenderTarget GetRenderTarget(string name)

Get the actual render target by name. Useful for externals that need to access the render target directly.

public Sandbox.Rendering.RenderTargetHandle GrabDepthTexture(string token = DepthTexture)

Takes a copy of the current viewport's depth texture and stores it in targetName on renderAttributes.

Parameters

  • token: Default: DepthTexture

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Rendering.CommandList.AttributeAccess

On this page

Methodspublic System.Void Clear()public Sandbox.RenderTarget GetRenderTarget(System.String name)public Sandbox.Rendering.RenderTargetHandle GrabDepthTexture(System.String token = DepthTexture)public Sandbox.Rendering.RenderTargetHandle GrabFrameTexture(System.String token, Sandbox.Graphics.DownsampleMethod downsampleMethod, System.Int32 maxMips = 0)public Sandbox.Rendering.RenderTargetHandle GrabFrameTexture(System.String token = FrameTexture, System.Boolean withMips = False)public System.Void Set(Sandbox.StringToken token, Matrix matrix)public System.Void Set(Sandbox.StringToken token, Sandbox.GpuBuffer buffer)public System.Void Set(Sandbox.StringToken token, Sandbox.Rendering.RenderTargetHandle.ColorIndexRef buffer)public System.Void Set(Sandbox.StringToken token, Sandbox.Rendering.RenderTargetHandle.ColorTextureRef buffer, System.Int32 mip = -1)public System.Void Set(Sandbox.StringToken token, Sandbox.Rendering.RenderTargetHandle.DepthTextureRef buffer, System.Int32 mip = -1)public System.Void Set(Sandbox.StringToken token, Sandbox.Rendering.RenderTargetHandle.SizeHandle size, System.Boolean inverse = False)public System.Void Set(Sandbox.StringToken token, Sandbox.Rendering.SamplerState samplerState)public System.Void Set(Sandbox.StringToken token, Sandbox.Texture texture, System.Int32 mip = -1)public System.Void Set(Sandbox.StringToken token, System.Boolean b)public System.Void Set(Sandbox.StringToken token, System.Double f)public System.Void Set(Sandbox.StringToken token, System.Int32 i)public System.Void Set(Sandbox.StringToken token, System.Single f)public System.Void Set(Sandbox.StringToken token, Vector2 vector2)public System.Void Set(Sandbox.StringToken token, Vector3 vector3)public System.Void Set(Sandbox.StringToken token, Vector4 vector4)public System.Void SetCombo(Sandbox.StringToken token, System.Boolean value)public System.Void SetCombo(Sandbox.StringToken token, System.Int32 value)public System.Void SetCombo(Sandbox.StringToken token, T t)public System.Void SetData(Sandbox.StringToken token, T data)public System.Void SetValue(Sandbox.StringToken token, Sandbox.Rendering.RenderValue value)Metadata