123456789101112131415161718192021222324 |
- namespace Veldrid.SPIRV
- {
- /// <summary>
- /// The output of a cross-compile operation of a compute shader from SPIR-V to some target language.
- /// </summary>
- public class ComputeCompilationResult
- {
- /// <summary>
- /// The translated shader source code.
- /// </summary>
- public string ComputeShader { get; }
- /// <summary>
- /// Information about the resources used in the compiled shader.
- /// </summary>
- public SpirvReflection Reflection { get; }
- internal ComputeCompilationResult(string computeCode, SpirvReflection reflection)
- {
- ComputeShader = computeCode;
- Reflection = reflection;
- }
- }
- }
|