Search Unity

64bit math functions

Discussion in 'Shaders' started by JonRurka, Dec 1, 2017.

  1. JonRurka

    JonRurka

    Joined:
    Nov 19, 2012
    Posts:
    35
    Hello, I'm writing a compute shader that requires a high level of precision, so I'm using doubles instead of floats. However, the math functions available for the compute shaders seem to only allow up to floats, thus bottling necking the precision. When I look at the compiled code, I see this comment:

    // Note: shader requires additional functionality:
    // Double-precision floating point
    // Double-precision extensions for 11.1

    This leads me to believe the functions do exists, just aren't implemented. Is there anyway to enable this functionality?