Class OwnerTextureDispatcher
Manages GPU compute shader for high-performance owner texture population. Processes entire map in parallel to populate province owner texture from simulation data. Part of the texture-based map rendering system - dual-layer architecture compliance. Performance: ~2ms for entire map vs 50+ seconds on CPU
public class OwnerTextureDispatcher : MonoBehaviour
- Inheritance
-
objectOwnerTextureDispatcher
Methods
Initialize()
Initialize compute shader kernels. Called by ArchonEngine.
public void Initialize()
PopulateOwnerTexture(ProvinceQueries)
Populate owner texture from Core simulation data using GPU compute shader Architecture: Core ProvinceQueries → GPU buffer → GPU texture
[ContextMenu("Populate Owner Texture")]
public void PopulateOwnerTexture(ProvinceQueries provinceQueries)
Parameters
provinceQueriesProvinceQueriesRead-only access to Core simulation data
SetTextureManager(MapTextureManager)
Set the texture manager reference
public void SetTextureManager(MapTextureManager manager)
Parameters
managerMapTextureManager