namespace Veldrid.SPIRV { /// /// The output of a cross-compile operation of a vertex and fragment shader from SPIR-V to some target language. /// public class VertexFragmentCompilationResult { /// /// The translated vertex shader source code. /// public string VertexShader { get; } /// /// The translated fragment shader source code. /// public string FragmentShader { get; } /// /// Information about the resources used in the compiled shaders. /// public SpirvReflection Reflection { get; } internal VertexFragmentCompilationResult( string vertexCode, string fragmentCode) : this(vertexCode, fragmentCode, null) { } internal VertexFragmentCompilationResult( string vertexCode, string fragmentCode, SpirvReflection reflection) { VertexShader = vertexCode; FragmentShader = fragmentCode; Reflection = reflection; } } }