Namespace ValveResourceFormat.Renderer ​
Namespaces ​
- ValveResourceFormat.Renderer.Audio
- ValveResourceFormat.Renderer.Buffers
- ValveResourceFormat.Renderer.Decals
- ValveResourceFormat.Renderer.Editor
- ValveResourceFormat.Renderer.Entities
- ValveResourceFormat.Renderer.Gameplay
- ValveResourceFormat.Renderer.Input
- ValveResourceFormat.Renderer.Materials
- ValveResourceFormat.Renderer.Particles
- ValveResourceFormat.Renderer.PostProcess
- ValveResourceFormat.Renderer.SceneEnvironment
- ValveResourceFormat.Renderer.SceneNodes
- ValveResourceFormat.Renderer.Shaders
- ValveResourceFormat.Renderer.Utils
- ValveResourceFormat.Renderer.World
Classes ​
| Name | Description |
|---|---|
| AllocStats | Collects per frame managed allocation and garbage collector statistics. |
| AnimationController | Drives a model's skeleton from whichever AnimationPlayer owns the animation being played: the model's own player, or the player of an external NM skeleton whose pose is remapped onto the model by bone name. |
| AnimationPlayer | Plays animations on a single skeleton: advances clip time, mixes the weighted clips into a frame and writes that frame's world-space pose. An AnimationController owns one player per skeleton its model can be animated from. |
| AnimationPlayer. | Drives one of a sequence's auto layers from its blend curve, over the owner's cycle or over a pose parameter. The layer is laid over the pose the owner and the layers before it made. |
| AnimationPlayer. | Drives one entry of a blend sequence's fetch from the live pose parameter values. |
| AnimationPlayer. | Takes a driven clip's playback position from an owner clip's cycle, and its weight from that owner. |
| AnimationPlayer. | Represents an animation clip with its playback state. |
| BoneConstraintSolver | Evaluates a model's bone constraints on its model space pose, in compiled order. |
| Camera | Perspective camera with view and projection matrix management. |
| CrosshairRenderer | Draws the classic static crosshair at the center of the viewport, for walk mode. |
| DrawCall | Single GPU draw operation with geometry, material, and render state. |
| FlexStateManager | Manages flex controller state and morph target composition for facial animation. |
| Framebuffer | OpenGL framebuffer object with color and depth attachments. |
| GLEnvironment | OpenGL environment initialization and default render state configuration. |
| GLGraphicsTypeExtensions | Maps texture addressing modes, shader stages and buffer usages to OpenGL equivalents. GLImageFormatExtensions does the same for image formats. |
| GLImageFormatExtensions | Maps ImageFormat to OpenGL equivalents, keeping the renderer unaware of API specific formats so they can later map to anything else. Facts that hold for every API live on ImageFormatExtensions. |
| GPUMeshBufferCache | Caches GPU mesh buffers and vertex array objects for efficient mesh rendering. |
| GPUMeshBuffers | GPU vertex and index buffers created from VBIB mesh data. |
| GraphicsContext | One command stream recorded against a GraphicsDevice's objects. |
| GraphicsDevice | Creates the GPU objects that one or more GraphicsContext record against. |
| InfiniteGrid | Renders an infinite reference grid on the XY plane. |
| JiggleBoneSolver | Simulates the jiggle bones of a model as springs in world space after the animation has posed it. A bone points along its local X axis, with yaw about its Z axis and pitch about its Y axis. A bone lags behind its animated pose, and its descendants follow it. |
| LightBinner | Tile and depth bin light culling for one view of a scene. |
| LightTilesOverlay | Fullscreen overlay for the LightTiles and EnvmapTiles render modes, reading the tile masks directly rather than through the per fragment heat map. |
| LineBuffer | Vertex array/buffer pair for drawing a colored line list with the default shader. |
| MeshBatchRenderer | Sorts and dispatches batched mesh draw calls for a render pass. |
| MeshCollectionNode | Base class for scene nodes that contain a collection of renderable meshes. |
| MorphComposite | Combines morph target deformations for one mesh into its rect of the RendererContext.MorphAtlas. |
| MorphCompositeAtlas | Morph composite atlas combining all scene meshes' composited result. |
| OcclusionDebugRenderer | Debug visualization renderer for occluded object bounds in occlusion culling. Renders bounding boxes directly from GPU buffer using procedural vertex generation. |
| PerfStats | Collects per frame rendering statistics. |
| PhysicsTraceDebugRenderer | Debug visualization for physics traces: draws the player collision hull while player movement is active, and sweeps a small box from the camera to show where it lands. |
| PhysicsWorld | Static collision of one world group: each loaded map's world physics, placed by its spawn group. |
| PickingTexture | Framebuffer for GPU-based object picking using unique object IDs. Rendering the scene into it with PickingTexture.Shader as the replacement shader writes each pixel's node and mesh, which PickingTexture.Read reads back. |
| QuadIndexBuffer | Pre-computed index buffer for rendering quads as triangle pairs. |
| QuadOverdraw | Quad overdraw debug visualization. |
| RenderableMesh | GPU-ready mesh with draw calls, materials, and optional skeletal animation support. |
| Renderer | Main renderer for Source 2 scenes with support for shadows, post-processing, and multiple render passes. |
| Renderer. | Depth range for a single layer of the scene. |
| RendererContext | Shared context containing loaders and caches used by the renderer. |
| RenderStateTracker | Tracks and applies render state for one device context. Owns the pass baseline (RenderStateTracker.CurrentPass) and a shadow of the last applied state, so RenderStateTracker.Apply(in RenderState) only sets what changed. State is per context, so each RendererContext owns one. |
| RenderTexture | OpenGL texture object with metadata for dimensions and filtering configuration. |
| Rubikon | Ray tracing against Rubikon physics collision shapes including meshes and hulls. |
| Rubikon. | Compound collision data: child shapes under the compound's own tree, whose leaves hold child shape ids. |
| Rubikon. | Convex hull collision data with vertices, edges, and planes. |
| Rubikon. | Triangle mesh collision data for ray tracing. |
| Sampler | OpenGL sampler object: the filtering and addressing state a texture is read with, overriding the parameters set on the texture itself for the unit it is bound to. |
| Scene | Container for scene nodes with spatial partitioning, lighting, and render state management. |
| SceneAggregate | Scene node for instanced rendering of aggregated world geometry. |
| SceneAggregate. | Single drawable fragment within an aggregate with independent bounds. |
| SceneClutter | Instanced aggregate for the instances of a WorldNode.ClutterSceneObject that share a tint. A compute pass picks the instances to draw each frame by their screen size. |
| SceneNode | Base class for all objects in the scene graph. |
| SceneNodeLightingCache | The environment map and light probe volume a scene node is lit with. A node only has one when it has cached lighting, either from handshakes of the map compiler or from the scene picking volumes for it. |
| SceneViewState | Culling results and draw lists for drawing a scene through one view. |
| ShadowAtlasPacker | Allocates shadow map regions from an atlas using a bitmask occupancy grid of ShadowAtlasPacker.CellSize-pixel cells. |
| ShadowMapper | Culls and sizes lights and packs their shadow faces into the atlas each frame. |
| SpatialNodeSet | Spatial set for scene nodes. Flat rather than hierarchical: relocating a node is six float stores and culling is a linear pass over bounds laid out for SIMD. |
| TextRenderer | Renders text using multi-channel signed distance field fonts. |
| TextRenderer. | An append-only arena for building many formatted lines into one large backing buffer without allocating. Each TextRenderer.TextArena.Format(ref FormatHandler) returns its text as a TextRenderer.TextMemory slice that stays valid until the next TextRenderer.TextArena.Clear(). |
| TextRenderer. | A reusable fixed-size buffer for per-frame formatted text. Construct once, sized directly or from a worst-case template string, then TextRenderer.TextBuffer.Format(ref FormatHandler) into it each frame and pass it wherever TextRenderer.TextMemory is expected, with no per-call allocations. |
| Timings | Utility class for measuring CPU and GPU timings of code regions. |
| VertexArray | Binds and deletes vertex array objects. Canonical locations let any shader draw any VAO, so debug builds check for mismatches. |
| VertexAttributeAttribute | Marks a vertex struct field as a shader input. The buffer format follows from the field type, see VertexInputLayout.FromStruct<TVertex>(string[]?). |
| VertexAttributeLocations | Resolves shader input names and buffer semantics to their VertexSlot. |
| VertexAttributeNameAttribute | Gives the shader input names of a VertexSlot, and the buffer semantic that gets that slot. |
| VertexInputLayout | Interleaved vertex layout of handbuilt geometry, held as the same input layout fields a mesh carries. Element order is buffer order, and offsets pack in declaration order unless given explicitly. |
| VisibilityBox | One info_visibility_box volume: an oriented box centred on its origin, held as six inward facing planes. |
| VisibilityBoxCuller | The boxes one view culls with, split once for the view's eye: an object is culled when it lies entirely inside any inside box, or when there are outside boxes and it touches none of them. |
| VisibilityBoxSet | The info_visibility_box volumes of one scene. A box only culls in the scene it was spawned in, so one in a 3D sky affects only the sky. |
| WorldLayer | A visibility layer scene nodes are put on, which hides every node on it while it is disabled. A node may be on several layers and is only shown while all of them are enabled, see SceneNode.Layers. Each scene keeps which layers are disabled, see Scene.SetLayerEnabled(WorldLayer, bool). |
Structs ​
| Name | Description |
|---|---|
| AnimationController. | An external NM skeleton the model can be animated from, and the retargeter mapping its poses back onto the model skeleton. |
| BinnedLight | A visible light produced by a ShadowMapper pass. |
| BinnedShadowCaster | A shadow-casting light face queued for rendering into the shadow atlas. |
| DynamicState | State that is recorded in a command buffer rather than baking into a pipeline object. |
| DynamicStateScope | Sets DynamicState for its scope and restores the previous values on dispose. |
| Frustum | View frustum for culling objects outside the camera's visible area. |
| GLDebugGroup | RAII wrapper for OpenGL debug group markers. |
| IndexDrawBuffer | Index buffer binding for draw calls. |
| MeshBatchRenderer. | Draw call request with distance and render order for sorting. |
| Meshlet | Small group of triangles on a mesh used for low level culling |
| Meshlet. | Packed axis-aligned bounding box stored as two 32-bit values. Each uint packs three 10-bit normalized components (x/y/z in 0..1023). |
| Meshlet. | Quantized cone used for backface/cone culling. |
| PickingTexture. | Pixel data read back from the picking framebuffer. |
| PrecomputedLightingHandshakes | The environment map and light probe volume a map compiler assigned to a node, each as a handshake id that the lighting objects of the world are registered under. Zero names nothing. |
| ProfilerScope | RAII wrapper timing a region that submits no GPU work. |
| RenderPassScope | Sets a render pass baseline for its scope and restores the previous one on dispose. Nesting-safe: compose the new baseline from RenderStateTracker.CurrentPass so outer overrides (e.g. global wireframe) survive into sub-passes. |
| RenderSettings | Rendering toggles shared by all scenes. |
| RenderState | The complete render state for a draw, built from the packed rendersystemdx11 descriptors. |
| Rubikon. | Precomputed sweep data for an axis-aligned box trace. |
| Rubikon. | Precomputed ray direction data for accelerated ray tracing. |
| Rubikon. | Ray trace hit result with position, normal, and distance. |
| SampledAnimationEvents<T> | Enumerates the events whose start is crossed while playback advances over a time range, handling loop wrap-around. Used by AnimationPlayer as it advances its clips; allocation free, so it can run every frame. |
| Scene. | Context data passed to scene nodes and renderers during draw calls. |
| Scene. | Context data passed to scene nodes during per-frame update. |
| SceneAggregate. | Baked LOD switching data for one cluster of aggregated instances. |
| SceneClutter. | One instance with its index in the compiled tile. |
| ShadowAtlasRegion | Describes the position and size of a shadow map region within the atlas texture. |
| ShadowFacePlacement | The atlas placement of a single binned shadow face: its region and the matching shadow offset-scale. |
| SimpleVertex | Simple vertex with position and color for debug rendering. |
| SimpleVertexNormal | Simple vertex with position, color, and normal for debug rendering. |
| TextRenderer. | Text for a TextRenderer.TextRenderRequest. Converts implicitly from a string, or from a caller-owned char buffer slice to render without allocating, in which case the buffer must not be overwritten until TextRenderer.Render(Camera, RenderTexture?) runs. |
| TextRenderer. | Interpolated string handler for TextRenderer.TextMemory.Format(Memory<char>, ref FormatHandler), forwarding to the buffer-writing BCL handler with the invariant culture. |
| TextRenderer. | Text rendering parameters. |
| VertexAttribute | One attribute of a VertexInputLayout. An offset of -1 packs it after the last one, and a location of -1 lets the layout place it. |
| VertexDrawBuffer | Vertex buffer binding with stride and attribute layout. |
Interfaces ​
| Name | Description |
|---|---|
| IDrawFilter | Decides which materials of which nodes are drawn, such as a tool hiding tools materials. The renderer draws every material as it says, and leaves the rest to whoever sets RenderSettings.DrawFilter. |
| IGraphicsSurface | The window side of a graphics context: the surface whose commands the context drives. Implemented by whoever owns the window. |
Enums ​
| Name | Description |
|---|---|
| AnimationPlayer. | How playback moves into a clip. |
| CustomRenderPasses | Per node flags about their desired render passes. |
| DepthOnlyBucket | How a draw enters the shadow maps and the depth pre-pass. Declaration order is render order. |
| DrawVisibility | How a node draws one of its materials. |
| LightTilesOverlay. | Which batch of the cull bits buffer the overlay draws. |
| MeshSkinning | How many bones a vertex blends. Doubles as the D_SKINNING combo value. |
| NodeSimulation | Which passes of the frame beyond Scene.UpdatePhase.Place a node takes part in. |
| RenderLayer | Which target a pass draws into, for the layers that share one. |
| RenderPass | Rendering pass types that define draw call ordering. |
| Rubikon. | Optional behaviors of an axis-aligned box trace. |
| Scene. | Indicates which spatial partition a scene node belongs to. |
| Scene. | Which pass of the frame an update belongs to. |
| SceneNodeFlags | Additional flags for SceneNodes. |
| VertexSlot | Canonical vertex attribute locations, fixed per name so one VAO serves every shader that draws the geometry. ShaderParser stamps them onto the in declarations. |
| VisibilityBoxMode | What an info_visibility_box hides, from its cull_mode. |
Delegates ​
| Name | Description |
|---|---|
| Renderer. | Draws into one scene for Renderer.DrawOverScenes<TState>(Framebuffer, ref TState, OverSceneDraw<TState>). |

