Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TargetActiveBlockContext.cs 835B

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. namespace UnityEditor.ShaderGraph
  3. {
  4. [GenerationAPI]
  5. internal class TargetActiveBlockContext
  6. {
  7. public List<BlockFieldDescriptor> activeBlocks { get; private set; }
  8. public List<BlockFieldDescriptor> currentBlocks { get; private set; }
  9. public PassDescriptor? pass { get; private set; }
  10. public TargetActiveBlockContext(List<BlockFieldDescriptor> currentBlocks, PassDescriptor? pass)
  11. {
  12. activeBlocks = new List<BlockFieldDescriptor>();
  13. this.currentBlocks = currentBlocks;
  14. this.pass = pass;
  15. }
  16. public void AddBlock(BlockFieldDescriptor block, bool conditional = true)
  17. {
  18. if (conditional == true)
  19. {
  20. activeBlocks.Add(block);
  21. }
  22. }
  23. }
  24. }