using System;
namespace ComputeSharp.Interop;
///
/// A model representing reflection info for a given compute shader.
///
/// The compiler version used to build the shader.
/// The HLSL source code the shader was built from.
/// The HLSL bytecode for the shader.
/// The number of shader constant buffers.
/// The number of resource (textures and buffers) bound to a shader.
/// The number of intermediate-language instructions in the compiled shader.
/// The number of temporary registers in the compiled shader.
/// The number of temporary arrays used.
/// The number of constant defines.
/// The number of declarations (input + output).
/// The number of non-categorized texture instructions.
/// The number of texture load instructions.
/// The number of texture write instructions.
/// The number of floating point arithmetic instructions used.
/// The number of signed integer arithmetic instructions used.
/// The number of unsigned integer arithmetic instructions used.
/// The number of static flow control instructions used.
/// The number of dynamic flow control instructions used.
/// The number of emit instructions used.
/// The number of barrier instructions used.
/// The number of interlocked instructions used.
/// The number of bitwise instructions used.
/// The number of movc instructions used.
/// The number of mov instructions used.
/// The number of interface slots used.
/// Indicates whether support for double precision floating point numbers is required.
public sealed record ShaderInfo(
string CompilerVersion,
string HlslSource,
ReadOnlyMemory HlslBytecode,
uint ConstantBufferCount,
uint BoundResourceCount,
uint InstructionCount,
uint TemporaryRegisterCount,
uint TemporaryArrayCount,
uint ConstantDefineCount,
uint DeclarationCount,
uint TextureNormalInstructions,
uint TextureLoadInstructionCount,
uint TextureStoreInstructionCount,
uint FloatInstructionCount,
uint IntInstructionCount,
uint UIntInstructionCount,
uint StaticFlowControlInstructionCount,
uint DynamicFlowControlInstructionCount,
uint EmitInstructionCount,
uint BarrierInstructionCount,
uint InterlockedInstructionCount,
uint BitwiseInstructionCount,
uint MovcInstructionCount,
uint MovInstructionCount,
uint InterfaceSlotCount,
bool RequiresDoublePrecisionSupport);