4 using System.Collections.Generic;
5 using SiliconStudio.Core;
7 namespace SiliconStudio.
Paradox.Effects
12 internal class ModelRendererState
14 #region Constants and Fields
18 private readonly Dictionary<RenderPass, int> modelSlotMapping =
new Dictionary<RenderPass, int>();
25 public ModelRendererState()
27 RenderModels =
new List<RenderModel>();
34 public int ModelSlotCount
38 return modelSlotMapping.Count;
50 return AcceptModel != null && PrepareRenderModel != null && AcceptRenderModel != null;
57 public Func<IModelInstance, bool> AcceptModel {
get; set; }
63 public Action<RenderModel> PrepareRenderModel {
get; set; }
69 public Func<RenderModel, bool> AcceptRenderModel {
get; set; }
75 public List<RenderModel> RenderModels {
get;
private set; }
82 public int GetModelSlot(RenderPass renderPass)
85 if (!modelSlotMapping.TryGetValue(renderPass, out meshPassSlot))
87 modelSlotMapping[renderPass] = meshPassSlot = modelSlotMapping.Count;
_Use_decl_annotations_ bool IsValid(DXGI_FORMAT fmt)
A class that represents a tag propety.