Libraries.Compute.Hardware.Shaders

3 classes

  • The DoubleNumber32ShaderCode class gives the GLSL a compute shader needs to work with Quorum's 64-bit numbers on any graphics card, in HardwareCompute's DOUBLE_NUMBER_32 format: each number as two 32-bit numbers, high and low (a vec2 in GLSL), about 48 bits.
  • The MatrixMultiplyShaderCode class writes the GLSL compute shader that multiplies two matrices of Quorum numbers on the graphics card, with one of four arithmetics (GetCode(tiled, size, arithmetic)): DOUBLE_NUMBER_32 HardwareCompute's DOUBLE_NUMBER_32 format, two 32-bit numbers each (DoubleNumber32ShaderCode): about 14 digits, every graphics card.
  • Number64ShaderCode gives the GLSL a compute shader needs to work with Quorum's 64-bit numbers held as real 64-bit numbers on the graphics card (HardwareCompute's NUMBER_64 format: one 64-bit number per element of the buffer, as Quorum and the CPU hold them).