XII Release 0.1.0
Loading...
Searching...
No Matches
xiiMaterialSystem Class Reference

#include <MaterialSystem.h>

Static Public Member Functions

static xiiResult CreateRuntimeMaterial (const xiiMaterialSchemaDescription &description, const xiiMaterialRuntimeState &runtimeState, xiiSharedPtr< xiiMaterialSchema > &out_pSchema, xiiSharedPtr< xiiMaterialInstance > &out_pInstance, xiiStringBuilder *out_pError=nullptr)

Friends

class xiiMaterialManager

Detailed Description

High-level owner for material instances and their GPU-visible storage.

Typical frame flow:

  1. BeginFrame() retires slots whose last GPU frame completed.
  2. Simulation threads mutate xiiMaterialInstance objects by stable parameter ID.
  3. AddUploadPass() captures revisions and declares transfer-to-shader synchronization.
  4. ExtractRenderData() produces compact draw/dispatch records for render extraction.

Member Function Documentation

◆ CreateRuntimeMaterial()

xiiResult xiiMaterialSystem::CreateRuntimeMaterial ( const xiiMaterialSchemaDescription & description,
const xiiMaterialRuntimeState & runtimeState,
xiiSharedPtr< xiiMaterialSchema > & out_pSchema,
xiiSharedPtr< xiiMaterialInstance > & out_pInstance,
xiiStringBuilder * out_pError = nullptr )
static

Builds a standalone runtime material without going through the resource manager. This is the preferred path for generated simulation, robotics sensor, and medical visualization materials.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Material/MaterialSystem.h
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Material/Implementation/MaterialSystem.cpp