ComputeCompilationResult.cs 723 B

123456789101112131415161718192021222324
  1. namespace Veldrid.SPIRV
  2. {
  3. /// <summary>
  4. /// The output of a cross-compile operation of a compute shader from SPIR-V to some target language.
  5. /// </summary>
  6. public class ComputeCompilationResult
  7. {
  8. /// <summary>
  9. /// The translated shader source code.
  10. /// </summary>
  11. public string ComputeShader { get; }
  12. /// <summary>
  13. /// Information about the resources used in the compiled shader.
  14. /// </summary>
  15. public SpirvReflection Reflection { get; }
  16. internal ComputeCompilationResult(string computeCode, SpirvReflection reflection)
  17. {
  18. ComputeShader = computeCode;
  19. Reflection = reflection;
  20. }
  21. }
  22. }