Struct RenderPassScope ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Sets a render pass baseline for its scope and restores the previous one on dispose. Nesting-safe: compose the new baseline from so outer overrides (e.g. global wireframe) survive into sub-passes.
csharp
public readonly ref struct RenderPassScopeConstructors ​
RenderPassScope(RenderStateTracker, scoped in RenderState) ​
Applies state as the pass baseline.
csharp
public RenderPassScope(RenderStateTracker tracker, scoped in RenderState state)Parameters ​
tracker RenderStateTracker
state RenderState
Methods ​
Dispose() ​
Restores the previous pass baseline. A default scope does nothing, so a scope can be conditional.
csharp
public void Dispose()
