GPU Core
GPU Core
GPU defines and functions.
Defines
FFX_TRUE
#define FFX_TRUE (true)
A define for a true value in a boolean expression.
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 26, column 9)
FFX_FALSE
#define FFX_FALSE (false)
A define for a false value in a boolean expression.
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 31, column 9)
FFX_POSITIVE_INFINITY_FLOAT
#define FFX_POSITIVE_INFINITY_FLOAT ffxAsFloat(0x7f800000u)
A define value for positive infinity.
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 36, column 9)
FFX_NEGATIVE_INFINITY_FLOAT
#define FFX_NEGATIVE_INFINITY_FLOAT ffxAsFloat(0xff800000u)
A define value for negative infinity.
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 41, column 9)
FFX_PI
#define FFX_PI (3.14159)
A define value for PI.
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 46, column 9)
Functions
ffxMin
FfxFloat32 ffxMin(FfxFloat32 x, FfxFloat32 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxFloat32
) – [in] The first value to compute the min of.y
(FfxFloat32
) – [in] The second value to compute the min of.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 63, column 12)
ffxMin
FfxFloat32x2 ffxMin(FfxFloat32x2 x, FfxFloat32x2 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxFloat32x2
) – [in] The first value to compute the min of.y
(FfxFloat32x2
) – [in] The second value to compute the min of.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 77, column 14)
ffxMin
FfxFloat32x3 ffxMin(FfxFloat32x3 x, FfxFloat32x3 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxFloat32x3
) – [in] The first value to compute the min of.y
(FfxFloat32x3
) – [in] The second value to compute the min of.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 91, column 14)
ffxMin
FfxFloat32x4 ffxMin(FfxFloat32x4 x, FfxFloat32x4 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxFloat32x4
) – [in] The first value to compute the min of.y
(FfxFloat32x4
) – [in] The second value to compute the min of.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 105, column 14)
ffxMin
FfxInt32 ffxMin(FfxInt32 x, FfxInt32 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxInt32
) – [in] The first value to compute the min of.y
(FfxInt32
) – [in] The second value to compute the min of.
Returns: FfxInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 119, column 10)
ffxMin
FfxInt32x2 ffxMin(FfxInt32x2 x, FfxInt32x2 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxInt32x2
) – [in] The first value to compute the min of.y
(FfxInt32x2
) – [in] The second value to compute the min of.
Returns: FfxInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 133, column 12)
ffxMin
FfxInt32x3 ffxMin(FfxInt32x3 x, FfxInt32x3 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxInt32x3
) – [in] The first value to compute the min of.y
(FfxInt32x3
) – [in] The second value to compute the min of.
Returns: FfxInt32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 147, column 12)
ffxMin
FfxInt32x4 ffxMin(FfxInt32x4 x, FfxInt32x4 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxInt32x4
) – [in] The first value to compute the min of.y
(FfxInt32x4
) – [in] The second value to compute the min of.
Returns: FfxInt32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 161, column 12)
ffxMin
FfxUInt32 ffxMin(FfxUInt32 x, FfxUInt32 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxUInt32
) – [in] The first value to compute the min of.y
(FfxUInt32
) – [in] The second value to compute the min of.
Returns: FfxUInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 175, column 11)
ffxMin
FfxUInt32x2 ffxMin(FfxUInt32x2 x, FfxUInt32x2 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxUInt32x2
) – [in] The first value to compute the min of.y
(FfxUInt32x2
) – [in] The second value to compute the min of.
Returns: FfxUInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 189, column 13)
ffxMin
FfxUInt32x3 ffxMin(FfxUInt32x3 x, FfxUInt32x3 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxUInt32x3
) – [in] The first value to compute the min of.y
(FfxUInt32x3
) – [in] The second value to compute the min of.
Returns: FfxUInt32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 203, column 13)
ffxMin
FfxUInt32x4 ffxMin(FfxUInt32x4 x, FfxUInt32x4 y)
Compute the min of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxUInt32x4
) – [in] The first value to compute the min of.y
(FfxUInt32x4
) – [in] The second value to compute the min of.
Returns: FfxUInt32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 217, column 13)
ffxMax
FfxFloat32 ffxMax(FfxFloat32 x, FfxFloat32 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxFloat32
) – [in] The first value to compute the max of.y
(FfxFloat32
) – [in] The second value to compute the max of.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 231, column 12)
ffxMax
FfxFloat32x2 ffxMax(FfxFloat32x2 x, FfxFloat32x2 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxFloat32x2
) – [in] The first value to compute the max of.y
(FfxFloat32x2
) – [in] The second value to compute the max of.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 245, column 14)
ffxMax
FfxFloat32x3 ffxMax(FfxFloat32x3 x, FfxFloat32x3 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxFloat32x3
) – [in] The first value to compute the max of.y
(FfxFloat32x3
) – [in] The second value to compute the max of.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 259, column 14)
ffxMax
FfxFloat32x4 ffxMax(FfxFloat32x4 x, FfxFloat32x4 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxFloat32x4
) – [in] The first value to compute the max of.y
(FfxFloat32x4
) – [in] The second value to compute the max of.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 273, column 14)
ffxMax
FfxInt32 ffxMax(FfxInt32 x, FfxInt32 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxInt32
) – [in] The first value to compute the max of.y
(FfxInt32
) – [in] The second value to compute the max of.
Returns: FfxInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 287, column 10)
ffxMax
FfxInt32x2 ffxMax(FfxInt32x2 x, FfxInt32x2 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxInt32x2
) – [in] The first value to compute the max of.y
(FfxInt32x2
) – [in] The second value to compute the max of.
Returns: FfxInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 301, column 12)
ffxMax
FfxInt32x3 ffxMax(FfxInt32x3 x, FfxInt32x3 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxInt32x3
) – [in] The first value to compute the max of.y
(FfxInt32x3
) – [in] The second value to compute the max of.
Returns: FfxInt32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 315, column 12)
ffxMax
FfxInt32x4 ffxMax(FfxInt32x4 x, FfxInt32x4 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxInt32x4
) – [in] The first value to compute the max of.y
(FfxInt32x4
) – [in] The second value to compute the max of.
Returns: FfxInt32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 329, column 12)
ffxMax
FfxUInt32 ffxMax(FfxUInt32 x, FfxUInt32 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxUInt32
) – [in] The first value to compute the max of.y
(FfxUInt32
) – [in] The second value to compute the max of.
Returns: FfxUInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 343, column 11)
ffxMax
FfxUInt32x2 ffxMax(FfxUInt32x2 x, FfxUInt32x2 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxUInt32x2
) – [in] The first value to compute the max of.y
(FfxUInt32x2
) – [in] The second value to compute the max of.
Returns: FfxUInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 357, column 13)
ffxMax
FfxUInt32x3 ffxMax(FfxUInt32x3 x, FfxUInt32x3 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxUInt32x3
) – [in] The first value to compute the max of.y
(FfxUInt32x3
) – [in] The second value to compute the max of.
Returns: FfxUInt32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 371, column 13)
ffxMax
FfxUInt32x4 ffxMax(FfxUInt32x4 x, FfxUInt32x4 y)
Compute the max of two values.
Returns: The the lowest of two values.
Parameters:
x
(FfxUInt32x4
) – [in] The first value to compute the max of.y
(FfxUInt32x4
) – [in] The second value to compute the max of.
Returns: FfxUInt32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 385, column 13)
ffxPow
FfxFloat32 ffxPow(FfxFloat32 x, FfxFloat32 y)
Compute the value of the first parameter raised to the power of the second.
Returns: The value of the first parameter raised to the power of the second.
Parameters:
x
(FfxFloat32
) – [in] The value to raise to the power y.y
(FfxFloat32
) – [in] The power to which to raise x.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 399, column 12)
ffxPow
FfxFloat32x2 ffxPow(FfxFloat32x2 x, FfxFloat32x2 y)
Compute the value of the first parameter raised to the power of the second.
Returns: The value of the first parameter raised to the power of the second.
Parameters:
x
(FfxFloat32x2
) – [in] The value to raise to the power y.y
(FfxFloat32x2
) – [in] The power to which to raise x.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 413, column 14)
ffxPow
FfxFloat32x3 ffxPow(FfxFloat32x3 x, FfxFloat32x3 y)
Compute the value of the first parameter raised to the power of the second.
Returns: The value of the first parameter raised to the power of the second.
Parameters:
x
(FfxFloat32x3
) – [in] The value to raise to the power y.y
(FfxFloat32x3
) – [in] The power to which to raise x.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 427, column 14)
ffxPow
FfxFloat32x4 ffxPow(FfxFloat32x4 x, FfxFloat32x4 y)
Compute the value of the first parameter raised to the power of the second.
Returns: The value of the first parameter raised to the power of the second.
Parameters:
x
(FfxFloat32x4
) – [in] The value to raise to the power y.y
(FfxFloat32x4
) – [in] The power to which to raise x.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 441, column 14)
ffxSqrt
FfxFloat32 ffxSqrt(FfxFloat32 x)
Compute the square root of a value.
Returns: The the square root of x.
Parameters:
x
(FfxFloat32
) – [in] The first value to compute the min of.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 454, column 12)
ffxSqrt
FfxFloat32x2 ffxSqrt(FfxFloat32x2 x)
Compute the square root of a value.
Returns: The the square root of x.
Parameters:
x
(FfxFloat32x2
) – [in] The first value to compute the min of.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 467, column 14)
ffxSqrt
FfxFloat32x3 ffxSqrt(FfxFloat32x3 x)
Compute the square root of a value.
Returns: The the square root of x.
Parameters:
x
(FfxFloat32x3
) – [in] The first value to compute the min of.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 480, column 14)
ffxSqrt
FfxFloat32x4 ffxSqrt(FfxFloat32x4 x)
Compute the square root of a value.
Returns: The the square root of x.
Parameters:
x
(FfxFloat32x4
) – [in] The first value to compute the min of.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 493, column 14)
ffxCopySignBit
FfxFloat32 ffxCopySignBit(FfxFloat32 d, FfxFloat32 s)
Copy the sign bit from ‘s’ to positive ‘d’.
Returns: The value of d with the sign bit from s.
Parameters:
d
(FfxFloat32
) – [in] The value to copy the sign bit into.s
(FfxFloat32
) – [in] The value to copy the sign bit from.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 507, column 12)
ffxCopySignBit
FfxFloat32x2 ffxCopySignBit(FfxFloat32x2 d, FfxFloat32x2 s)
Copy the sign bit from ‘s’ to positive ‘d’.
Returns: The value of d with the sign bit from s.
Parameters:
d
(FfxFloat32x2
) – [in] The value to copy the sign bit into.s
(FfxFloat32x2
) – [in] The value to copy the sign bit from.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 521, column 14)
ffxCopySignBit
FfxFloat32x3 ffxCopySignBit(FfxFloat32x3 d, FfxFloat32x3 s)
Copy the sign bit from ‘s’ to positive ‘d’.
Returns: The value of d with the sign bit from s.
Parameters:
d
(FfxFloat32x3
) – [in] The value to copy the sign bit into.s
(FfxFloat32x3
) – [in] The value to copy the sign bit from.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 535, column 14)
ffxCopySignBit
FfxFloat32x4 ffxCopySignBit(FfxFloat32x4 d, FfxFloat32x4 s)
Copy the sign bit from ‘s’ to positive ‘d’.
Returns: The value of d with the sign bit from s.
Parameters:
d
(FfxFloat32x4
) – [in] The value to copy the sign bit into.s
(FfxFloat32x4
) – [in] The value to copy the sign bit from.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 549, column 14)
ffxIsSigned
FfxFloat32 ffxIsSigned(FfxFloat32 m)
A single operation to return the following: m = NaN := 0 m>= 0 := 0 m <0 := 1.
Uses the following useful floating point logic, saturate(+a*(-INF)==-INF) := 0 saturate( 0*(-INF)== NaN) := 0 saturate(-a*(-INF)==+INF) := 1
This function is useful when creating masks for branch-free logic.
Returns: 1.0 when the value is negative, or 0.0 when the value is 0 or position.
Parameters:
m
(FfxFloat32
) – [in] The value to test against 0.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 572, column 12)
ffxIsSigned
FfxFloat32x2 ffxIsSigned(FfxFloat32x2 m)
A single operation to return the following: m = NaN := 0 m>= 0 := 0 m <0 := 1.
Uses the following useful floating point logic, saturate(+a*(-INF)==-INF) := 0 saturate( 0*(-INF)== NaN) := 0 saturate(-a*(-INF)==+INF) := 1
This function is useful when creating masks for branch-free logic.
Returns: 1.0 when the value is negative, or 0.0 when the value is 0 or position.
Parameters:
m
(FfxFloat32x2
) – [in] The value to test against 0.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 595, column 14)
ffxIsSigned
FfxFloat32x3 ffxIsSigned(FfxFloat32x3 m)
A single operation to return the following: m = NaN := 0 m>= 0 := 0 m <0 := 1.
Uses the following useful floating point logic, saturate(+a*(-INF)==-INF) := 0 saturate( 0*(-INF)== NaN) := 0 saturate(-a*(-INF)==+INF) := 1
This function is useful when creating masks for branch-free logic.
Returns: 1.0 when the value is negative, or 0.0 when the value is 0 or position.
Parameters:
m
(FfxFloat32x3
) – [in] The value to test against 0.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 618, column 14)
ffxIsSigned
FfxFloat32x4 ffxIsSigned(FfxFloat32x4 m)
A single operation to return the following: m = NaN := 0 m>= 0 := 0 m <0 := 1.
Uses the following useful floating point logic, saturate(+a*(-INF)==-INF) := 0 saturate( 0*(-INF)== NaN) := 0 saturate(-a*(-INF)==+INF) := 1
This function is useful when creating masks for branch-free logic.
Returns: 1.0 when the value is negative, or 0.0 when the value is 0 or positive.
Parameters:
m
(FfxFloat32x4
) – [in] The value to test against for have the sign set.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 641, column 14)
ffxIsGreaterThanZero
FfxFloat32 ffxIsGreaterThanZero(FfxFloat32 m)
A single operation to return the following: m = NaN := 1 m> 0 := 0 m <= 0 := 1.
This function is useful when creating masks for branch-free logic.
Returns: 1.0 when the value is position, or 0.0 when the value is 0 or negative.
Parameters:
m
(FfxFloat32
) – [in] The value to test against zero.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 659, column 12)
ffxIsGreaterThanZero
FfxFloat32x2 ffxIsGreaterThanZero(FfxFloat32x2 m)
A single operation to return the following: m = NaN := 1 m> 0 := 0 m <= 0 := 1.
This function is useful when creating masks for branch-free logic.
Returns: 1.0 when the value is position, or 0.0 when the value is 0 or negative.
Parameters:
m
(FfxFloat32x2
) – [in] The value to test against zero.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 677, column 14)
ffxIsGreaterThanZero
FfxFloat32x3 ffxIsGreaterThanZero(FfxFloat32x3 m)
A single operation to return the following: m = NaN := 1 m> 0 := 0 m <= 0 := 1.
This function is useful when creating masks for branch-free logic.
Returns: 1.0 when the value is position, or 0.0 when the value is 0 or negative.
Parameters:
m
(FfxFloat32x3
) – [in] The value to test against zero.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 695, column 14)
ffxIsGreaterThanZero
FfxFloat32x4 ffxIsGreaterThanZero(FfxFloat32x4 m)
A single operation to return the following: m = NaN := 1 m> 0 := 0 m <= 0 := 1.
This function is useful when creating masks for branch-free logic.
Returns: 1.0 when the value is position, or 0.0 when the value is 0 or negative.
Parameters:
m
(FfxFloat32x4
) – [in] The value to test against zero.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 713, column 14)
ffxFloatToSortableInteger
FfxUInt32 ffxFloatToSortableInteger(FfxUInt32 value)
Convert a 32bit floating point value to sortable integer.
If sign bit=0, flip the sign bit (positives). If sign bit=1, flip all bits (negatives).
The function has the side effects that: Larger integers are more positive values. Float zero is mapped to center of integers (so clear to integer zero is a nice default for atomic max usage).
Returns: The sortable integer value.
Parameters:
value
(FfxUInt32
) – [in] The floating point value to make sortable.
Returns: FfxUInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 733, column 11)
ffxSortableIntegerToFloat
FfxUInt32 ffxSortableIntegerToFloat(FfxUInt32 value)
Convert a sortable integer to a 32bit floating point value.
The function has the side effects that: If sign bit=1, flip the sign bit (positives). If sign bit=0, flip all bits (negatives).
Returns: The sortable integer value.
Parameters:
value
(FfxUInt32
) – [in] The floating point value to make sortable.
Returns: FfxUInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 750, column 11)
ffxApproximateSqrt
FfxFloat32 ffxApproximateSqrt(FfxFloat32 value)
Calculate a low-quality approximation for the square root of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the square root, estimated to low quality.
Parameters:
value
(FfxFloat32
) – [in] The value to calculate an approximate to the square root for.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 769, column 12)
ffxApproximateReciprocal
FfxFloat32 ffxApproximateReciprocal(FfxFloat32 value)
Calculate a low-quality approximation for the reciprocal of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the reciprocal, estimated to low quality.
Parameters:
value
(FfxFloat32
) – [in] The value to calculate an approximate to the reciprocal for.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 788, column 12)
ffxApproximateReciprocalMedium
FfxFloat32 ffxApproximateReciprocalMedium(FfxFloat32 value)
Calculate a medium-quality approximation for the reciprocal of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the reciprocal, estimated to medium quality.
Parameters:
value
(FfxFloat32
) – [in] The value to calculate an approximate to the reciprocal for.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 807, column 12)
ffxApproximateReciprocalSquareRoot
FfxFloat32 ffxApproximateReciprocalSquareRoot(FfxFloat32 value)
Calculate a low-quality approximation for the reciprocal of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the reciprocal square root, estimated to low quality.
Parameters:
value
(FfxFloat32
) – [in] The value to calculate an approximate to the reciprocal square root for.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 827, column 12)
ffxApproximateSqrt
FfxFloat32x2 ffxApproximateSqrt(FfxFloat32x2 value)
Calculate a low-quality approximation for the square root of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the square root, estimated to low quality.
Parameters:
value
(FfxFloat32x2
) – [in] The value to calculate an approximate to the square root for.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 846, column 14)
ffxApproximateReciprocal
FfxFloat32x2 ffxApproximateReciprocal(FfxFloat32x2 value)
Calculate a low-quality approximation for the reciprocal of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the reciprocal, estimated to low quality.
Parameters:
value
(FfxFloat32x2
) – [in] The value to calculate an approximate to the reciprocal for.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 865, column 14)
ffxApproximateReciprocalMedium
FfxFloat32x2 ffxApproximateReciprocalMedium(FfxFloat32x2 value)
Calculate a medium-quality approximation for the reciprocal of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the reciprocal, estimated to medium quality.
Parameters:
value
(FfxFloat32x2
) – [in] The value to calculate an approximate to the reciprocal for.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 884, column 14)
ffxApproximateReciprocalSquareRoot
FfxFloat32x2 ffxApproximateReciprocalSquareRoot(FfxFloat32x2 value)
Calculate a low-quality approximation for the square root of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the square root, estimated to low quality.
Parameters:
value
(FfxFloat32x2
) – [in] The value to calculate an approximate to the square root for.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 904, column 14)
ffxApproximateSqrt
FfxFloat32x3 ffxApproximateSqrt(FfxFloat32x3 value)
Calculate a low-quality approximation for the square root of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the square root, estimated to low quality.
Parameters:
value
(FfxFloat32x3
) – [in] The value to calculate an approximate to the square root for.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 923, column 14)
ffxApproximateReciprocal
FfxFloat32x3 ffxApproximateReciprocal(FfxFloat32x3 value)
Calculate a low-quality approximation for the reciprocal of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the reciprocal, estimated to low quality.
Parameters:
value
(FfxFloat32x3
) – [in] The value to calculate an approximate to the reciprocal for.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 942, column 14)
ffxApproximateReciprocalMedium
FfxFloat32x3 ffxApproximateReciprocalMedium(FfxFloat32x3 value)
Calculate a medium-quality approximation for the reciprocal of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the reciprocal, estimated to medium quality.
Parameters:
value
(FfxFloat32x3
) – [in] The value to calculate an approximate to the reciprocal for.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 961, column 14)
ffxApproximateReciprocalSquareRoot
FfxFloat32x3 ffxApproximateReciprocalSquareRoot(FfxFloat32x3 value)
Calculate a low-quality approximation for the square root of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the square root, estimated to low quality.
Parameters:
value
(FfxFloat32x3
) – [in] The value to calculate an approximate to the square root for.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 981, column 14)
ffxApproximateSqrt
FfxFloat32x4 ffxApproximateSqrt(FfxFloat32x4 value)
Calculate a low-quality approximation for the square root of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the square root, estimated to low quality.
Parameters:
value
(FfxFloat32x4
) – [in] The value to calculate an approximate to the square root for.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1000, column 14)
ffxApproximateReciprocal
FfxFloat32x4 ffxApproximateReciprocal(FfxFloat32x4 value)
Calculate a low-quality approximation for the reciprocal of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the reciprocal, estimated to low quality.
Parameters:
value
(FfxFloat32x4
) – [in] The value to calculate an approximate to the reciprocal for.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1019, column 14)
ffxApproximateReciprocalMedium
FfxFloat32x4 ffxApproximateReciprocalMedium(FfxFloat32x4 value)
Calculate a medium-quality approximation for the reciprocal of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the reciprocal, estimated to medium quality.
Parameters:
value
(FfxFloat32x4
) – [in] The value to calculate an approximate to the reciprocal for.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1038, column 14)
ffxApproximateReciprocalSquareRoot
FfxFloat32x4 ffxApproximateReciprocalSquareRoot(FfxFloat32x4 value)
Calculate a low-quality approximation for the square root of a value.
For additional information on the approximation family of functions, you can refer to Michal Drobot’s excellent presentation materials:
https://michaldrobot.files.wordpress.com/2014/05/gcn_alu_opt_digitaldragons2014.pdf https://github.com/michaldrobot/ShaderFastLibs/blob/master/ShaderFastMathLib.h
Returns: An approximation of the square root, estimated to low quality.
Parameters:
value
(FfxFloat32x4
) – [in] The value to calculate an approximate to the square root for.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1058, column 14)
ffxDot2
FfxFloat32 ffxDot2(FfxFloat32x2 a, FfxFloat32x2 b)
Calculate dot product of ‘a’ and ‘b’.
Returns: The value of a dot b.
Parameters:
a
(FfxFloat32x2
) – [in] First vector input.b
(FfxFloat32x2
) – [in] Second vector input.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1072, column 12)
ffxDot3
FfxFloat32 ffxDot3(FfxFloat32x3 a, FfxFloat32x3 b)
Calculate dot product of ‘a’ and ‘b’.
Returns: The value of a dot b.
Parameters:
a
(FfxFloat32x3
) – [in] First vector input.b
(FfxFloat32x3
) – [in] Second vector input.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1086, column 12)
ffxDot4
FfxFloat32 ffxDot4(FfxFloat32x4 a, FfxFloat32x4 b)
Calculate dot product of ‘a’ and ‘b’.
Returns: The value of a dot b.
Parameters:
a
(FfxFloat32x4
) – [in] First vector input.b
(FfxFloat32x4
) – [in] Second vector input.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1100, column 12)
ffxApproximatePQToGamma2Medium
FfxFloat32 ffxApproximatePQToGamma2Medium(FfxFloat32 a)
Compute an approximate conversion from PQ to Gamma2 space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into Gamma2.
Parameters:
a
(FfxFloat32
) – The value to convert between PQ and Gamma2.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1118, column 12)
ffxApproximatePQToLinear
FfxFloat32 ffxApproximatePQToLinear(FfxFloat32 a)
Compute an approximate conversion from PQ to linear space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into linear.
Parameters:
a
(FfxFloat32
) – The value to convert between PQ and linear.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1135, column 12)
ffxApproximateGamma2ToPQ
FfxFloat32 ffxApproximateGamma2ToPQ(FfxFloat32 a)
Compute an approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1152, column 12)
ffxApproximateGamma2ToPQMedium
FfxFloat32 ffxApproximateGamma2ToPQMedium(FfxFloat32 a)
Compute a more accurate approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1169, column 12)
ffxApproximateGamma2ToPQHigh
FfxFloat32 ffxApproximateGamma2ToPQHigh(FfxFloat32 a)
Compute a high accuracy approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1188, column 12)
ffxApproximateLinearToPQ
FfxFloat32 ffxApproximateLinearToPQ(FfxFloat32 a)
Compute an approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32
) – The value to convert between linear and PQ.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1205, column 12)
ffxApproximateLinearToPQMedium
FfxFloat32 ffxApproximateLinearToPQMedium(FfxFloat32 a)
Compute a more accurate approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32
) – The value to convert between linear and PQ.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1222, column 12)
ffxApproximateLinearToPQHigh
FfxFloat32 ffxApproximateLinearToPQHigh(FfxFloat32 a)
Compute a very accurate approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32
) – The value to convert between linear and PQ.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1241, column 12)
ffxApproximatePQToGamma2Medium
FfxFloat32x2 ffxApproximatePQToGamma2Medium(FfxFloat32x2 a)
Compute an approximate conversion from PQ to Gamma2 space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into Gamma2.
Parameters:
a
(FfxFloat32x2
) – The value to convert between PQ and Gamma2.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1258, column 14)
ffxApproximatePQToLinear
FfxFloat32x2 ffxApproximatePQToLinear(FfxFloat32x2 a)
Compute an approximate conversion from PQ to linear space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into linear.
Parameters:
a
(FfxFloat32x2
) – The value to convert between PQ and linear.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1275, column 14)
ffxApproximateGamma2ToPQ
FfxFloat32x2 ffxApproximateGamma2ToPQ(FfxFloat32x2 a)
Compute an approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x2
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1292, column 14)
ffxApproximateGamma2ToPQMedium
FfxFloat32x2 ffxApproximateGamma2ToPQMedium(FfxFloat32x2 a)
Compute a more accurate approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x2
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1309, column 14)
ffxApproximateGamma2ToPQHigh
FfxFloat32x2 ffxApproximateGamma2ToPQHigh(FfxFloat32x2 a)
Compute a high accuracy approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x2
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1328, column 14)
ffxApproximateLinearToPQ
FfxFloat32x2 ffxApproximateLinearToPQ(FfxFloat32x2 a)
Compute an approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x2
) – The value to convert between linear and PQ.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1345, column 14)
ffxApproximateLinearToPQMedium
FfxFloat32x2 ffxApproximateLinearToPQMedium(FfxFloat32x2 a)
Compute a more accurate approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x2
) – The value to convert between linear and PQ.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1362, column 14)
ffxApproximateLinearToPQHigh
FfxFloat32x2 ffxApproximateLinearToPQHigh(FfxFloat32x2 a)
Compute a very accurate approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x2
) – The value to convert between linear and PQ.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1381, column 14)
ffxApproximatePQToGamma2Medium
FfxFloat32x3 ffxApproximatePQToGamma2Medium(FfxFloat32x3 a)
Compute an approximate conversion from PQ to Gamma2 space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into Gamma2.
Parameters:
a
(FfxFloat32x3
) – The value to convert between PQ and Gamma2.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1398, column 14)
ffxApproximatePQToLinear
FfxFloat32x3 ffxApproximatePQToLinear(FfxFloat32x3 a)
Compute an approximate conversion from PQ to linear space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into linear.
Parameters:
a
(FfxFloat32x3
) – The value to convert between PQ and linear.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1415, column 14)
ffxApproximateGamma2ToPQ
FfxFloat32x3 ffxApproximateGamma2ToPQ(FfxFloat32x3 a)
Compute an approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x3
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1432, column 14)
ffxApproximateGamma2ToPQMedium
FfxFloat32x3 ffxApproximateGamma2ToPQMedium(FfxFloat32x3 a)
Compute a more accurate approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x3
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1449, column 14)
ffxApproximateGamma2ToPQHigh
FfxFloat32x3 ffxApproximateGamma2ToPQHigh(FfxFloat32x3 a)
Compute a high accuracy approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x3
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1468, column 14)
ffxApproximateLinearToPQ
FfxFloat32x3 ffxApproximateLinearToPQ(FfxFloat32x3 a)
Compute an approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x3
) – The value to convert between linear and PQ.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1485, column 14)
ffxApproximateLinearToPQMedium
FfxFloat32x3 ffxApproximateLinearToPQMedium(FfxFloat32x3 a)
Compute a more accurate approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x3
) – The value to convert between linear and PQ.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1502, column 14)
ffxApproximateLinearToPQHigh
FfxFloat32x3 ffxApproximateLinearToPQHigh(FfxFloat32x3 a)
Compute a very accurate approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x3
) – The value to convert between linear and PQ.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1521, column 14)
ffxApproximatePQToGamma2Medium
FfxFloat32x4 ffxApproximatePQToGamma2Medium(FfxFloat32x4 a)
Compute an approximate conversion from PQ to Gamma2 space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into Gamma2.
Parameters:
a
(FfxFloat32x4
) – The value to convert between PQ and Gamma2.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1538, column 14)
ffxApproximatePQToLinear
FfxFloat32x4 ffxApproximatePQToLinear(FfxFloat32x4 a)
Compute an approximate conversion from PQ to linear space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into linear.
Parameters:
a
(FfxFloat32x4
) – The value to convert between PQ and linear.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1555, column 14)
ffxApproximateGamma2ToPQ
FfxFloat32x4 ffxApproximateGamma2ToPQ(FfxFloat32x4 a)
Compute an approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x4
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1572, column 14)
ffxApproximateGamma2ToPQMedium
FfxFloat32x4 ffxApproximateGamma2ToPQMedium(FfxFloat32x4 a)
Compute a more accurate approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x4
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1589, column 14)
ffxApproximateGamma2ToPQHigh
FfxFloat32x4 ffxApproximateGamma2ToPQHigh(FfxFloat32x4 a)
Compute a high accuracy approximate conversion from gamma2 to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x4
) – The value to convert between gamma2 and PQ.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1608, column 14)
ffxApproximateLinearToPQ
FfxFloat32x4 ffxApproximateLinearToPQ(FfxFloat32x4 a)
Compute an approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x4
) – The value to convert between linear and PQ.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1625, column 14)
ffxApproximateLinearToPQMedium
FfxFloat32x4 ffxApproximateLinearToPQMedium(FfxFloat32x4 a)
Compute a more accurate approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x4
) – The value to convert between linear and PQ.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1642, column 14)
ffxApproximateLinearToPQHigh
FfxFloat32x4 ffxApproximateLinearToPQHigh(FfxFloat32x4 a)
Compute a very accurate approximate conversion from linear to PQ space.
PQ is very close to x^(1/8). The functions below Use the fast FfxFloat32 approximation method to do PQ conversions to and from Gamma2 (4th power and fast 4th root), and PQ to and from Linear (8th power and fast 8th root). The maximum error is approximately 0.2%.
Returns: The value a converted into PQ.
Parameters:
a
(FfxFloat32x4
) – The value to convert between linear and PQ.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1661, column 14)
ffxZeroOneAnd
FfxUInt32 ffxZeroOneAnd(FfxUInt32 x, FfxUInt32 y)
Conditional free logic AND operation using values.
Returns: Result of the AND operation.
Parameters:
x
(FfxUInt32
) – [in] The first value to be fed into the AND operator.y
(FfxUInt32
) – [in] The second value to be fed into the AND operator.
Returns: FfxUInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1751, column 11)
ffxZeroOneAnd
FfxUInt32x2 ffxZeroOneAnd(FfxUInt32x2 x, FfxUInt32x2 y)
Conditional free logic AND operation using two values.
Returns: Result of the AND operation.
Parameters:
x
(FfxUInt32x2
) – [in] The first value to be fed into the AND operator.y
(FfxUInt32x2
) – [in] The second value to be fed into the AND operator.
Returns: FfxUInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1765, column 13)
ffxZeroOneAnd
FfxUInt32x3 ffxZeroOneAnd(FfxUInt32x3 x, FfxUInt32x3 y)
Conditional free logic AND operation using two values.
Returns: Result of the AND operation.
Parameters:
x
(FfxUInt32x3
) – [in] The first value to be fed into the AND operator.y
(FfxUInt32x3
) – [in] The second value to be fed into the AND operator.
Returns: FfxUInt32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1779, column 13)
ffxZeroOneAnd
FfxUInt32x4 ffxZeroOneAnd(FfxUInt32x4 x, FfxUInt32x4 y)
Conditional free logic AND operation using two values.
Returns: Result of the AND operation.
Parameters:
x
(FfxUInt32x4
) – [in] The first value to be fed into the AND operator.y
(FfxUInt32x4
) – [in] The second value to be fed into the AND operator.
Returns: FfxUInt32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1793, column 13)
ffxZeroOneAnd
FfxUInt32 ffxZeroOneAnd(FfxUInt32 x)
Conditional free logic NOT operation using two values.
Returns: Result of the NOT operation.
Parameters:
x
(FfxUInt32
) – [in] The first value to be fed into the NOT operator.
Returns: FfxUInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1806, column 11)
ffxZeroOneAnd
FfxUInt32x2 ffxZeroOneAnd(FfxUInt32x2 x)
Conditional free logic NOT operation using two values.
Returns: Result of the NOT operation.
Parameters:
x
(FfxUInt32x2
) – [in] The first value to be fed into the NOT operator.
Returns: FfxUInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1819, column 13)
ffxZeroOneAnd
FfxUInt32x3 ffxZeroOneAnd(FfxUInt32x3 x)
Conditional free logic NOT operation using two values.
Returns: Result of the NOT operation.
Parameters:
x
(FfxUInt32x3
) – [in] The first value to be fed into the NOT operator.
Returns: FfxUInt32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1832, column 13)
ffxZeroOneAnd
FfxUInt32x4 ffxZeroOneAnd(FfxUInt32x4 x)
Conditional free logic NOT operation using two values.
Returns: Result of the NOT operation.
Parameters:
x
(FfxUInt32x4
) – [in] The first value to be fed into the NOT operator.
Returns: FfxUInt32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1845, column 13)
ffxZeroOneOr
FfxUInt32 ffxZeroOneOr(FfxUInt32 x, FfxUInt32 y)
Conditional free logic OR operation using two values.
Returns: Result of the OR operation.
Parameters:
x
(FfxUInt32
) – [in] The first value to be fed into the OR operator.y
(FfxUInt32
) – [in] The second value to be fed into the OR operator.
Returns: FfxUInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1859, column 11)
ffxZeroOneOr
FfxUInt32x2 ffxZeroOneOr(FfxUInt32x2 x, FfxUInt32x2 y)
Conditional free logic OR operation using two values.
Returns: Result of the OR operation.
Parameters:
x
(FfxUInt32x2
) – [in] The first value to be fed into the OR operator.y
(FfxUInt32x2
) – [in] The second value to be fed into the OR operator.
Returns: FfxUInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1873, column 13)
ffxZeroOneOr
FfxUInt32x3 ffxZeroOneOr(FfxUInt32x3 x, FfxUInt32x3 y)
Conditional free logic OR operation using two values.
Returns: Result of the OR operation.
Parameters:
x
(FfxUInt32x3
) – [in] The first value to be fed into the OR operator.y
(FfxUInt32x3
) – [in] The second value to be fed into the OR operator.
Returns: FfxUInt32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1887, column 13)
ffxZeroOneOr
FfxUInt32x4 ffxZeroOneOr(FfxUInt32x4 x, FfxUInt32x4 y)
Conditional free logic OR operation using two values.
Returns: Result of the OR operation.
Parameters:
x
(FfxUInt32x4
) – [in] The first value to be fed into the OR operator.y
(FfxUInt32x4
) – [in] The second value to be fed into the OR operator.
Returns: FfxUInt32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1901, column 13)
ffxZeroOneAndToU1
FfxUInt32 ffxZeroOneAndToU1(FfxFloat32 x)
Conditional free logic signed NOT operation using two half-precision FfxFloat32 values.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32
) – [in] The first value to be fed into the AND OR operator.
Returns: FfxUInt32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1914, column 11)
ffxZeroOneAndToU2
FfxUInt32x2 ffxZeroOneAndToU2(FfxFloat32x2 x)
Conditional free logic signed NOT operation using two half-precision FfxFloat32 values.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32x2
) – [in] The first value to be fed into the AND OR operator.
Returns: FfxUInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1927, column 13)
ffxZeroOneAndToU3
FfxUInt32x3 ffxZeroOneAndToU3(FfxFloat32x3 x)
Conditional free logic signed NOT operation using two half-precision FfxFloat32 values.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32x3
) – [in] The first value to be fed into the AND OR operator.
Returns: FfxUInt32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1940, column 13)
ffxZeroOneAndToU4
FfxUInt32x4 ffxZeroOneAndToU4(FfxFloat32x4 x)
Conditional free logic signed NOT operation using two half-precision FfxFloat32 values.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32x4
) – [in] The first value to be fed into the AND OR operator.
Returns: FfxUInt32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1953, column 13)
ffxZeroOneAndOr
FfxFloat32 ffxZeroOneAndOr(FfxFloat32 x, FfxFloat32 y, FfxFloat32 z)
Conditional free logic AND operation using two values followed by a NOT operation using the resulting value and a third value.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32
) – [in] The first value to be fed into the AND operator.y
(FfxFloat32
) – [in] The second value to be fed into the AND operator.z
(FfxFloat32
) – [in] The second value to be fed into the OR operator.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1969, column 12)
ffxZeroOneAndOr
FfxFloat32x2 ffxZeroOneAndOr(FfxFloat32x2 x, FfxFloat32x2 y, FfxFloat32x2 z)
Conditional free logic AND operation using two values followed by a NOT operation using the resulting value and a third value.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32x2
) – [in] The first value to be fed into the AND operator.y
(FfxFloat32x2
) – [in] The second value to be fed into the AND operator.z
(FfxFloat32x2
) – [in] The second value to be fed into the OR operator.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 1985, column 14)
ffxZeroOneAndOr
FfxFloat32x3 ffxZeroOneAndOr(FfxFloat32x3 x, FfxFloat32x3 y, FfxFloat32x3 z)
Conditional free logic AND operation using two values followed by a NOT operation using the resulting value and a third value.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32x3
) – [in] The first value to be fed into the AND operator.y
(FfxFloat32x3
) – [in] The second value to be fed into the AND operator.z
(FfxFloat32x3
) – [in] The second value to be fed into the OR operator.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2001, column 14)
ffxZeroOneAndOr
FfxFloat32x4 ffxZeroOneAndOr(FfxFloat32x4 x, FfxFloat32x4 y, FfxFloat32x4 z)
Conditional free logic AND operation using two values followed by a NOT operation using the resulting value and a third value.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32x4
) – [in] The first value to be fed into the AND operator.y
(FfxFloat32x4
) – [in] The second value to be fed into the AND operator.z
(FfxFloat32x4
) – [in] The second value to be fed into the OR operator.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2017, column 14)
ffxZeroOneIsGreaterThanZero
FfxFloat32 ffxZeroOneIsGreaterThanZero(FfxFloat32 x)
Given a value, returns 1.0 if greater than zero and 0.0 if not.
Returns: Result of the greater than zero comparison.
Parameters:
x
(FfxFloat32
) – [in] The value to be compared.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2030, column 12)
ffxZeroOneIsGreaterThanZero
FfxFloat32x2 ffxZeroOneIsGreaterThanZero(FfxFloat32x2 x)
Given a value, returns 1.0 if greater than zero and 0.0 if not.
Returns: Result of the greater than zero comparison.
Parameters:
x
(FfxFloat32x2
) – [in] The value to be compared.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2043, column 14)
ffxZeroOneIsGreaterThanZero
FfxFloat32x3 ffxZeroOneIsGreaterThanZero(FfxFloat32x3 x)
Given a value, returns 1.0 if greater than zero and 0.0 if not.
Returns: Result of the greater than zero comparison.
Parameters:
x
(FfxFloat32x3
) – [in] The value to be compared.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2056, column 14)
ffxZeroOneIsGreaterThanZero
FfxFloat32x4 ffxZeroOneIsGreaterThanZero(FfxFloat32x4 x)
Given a value, returns 1.0 if greater than zero and 0.0 if not.
Returns: Result of the greater than zero comparison.
Parameters:
x
(FfxFloat32x4
) – [in] The value to be compared.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2069, column 14)
ffxZeroOneAnd
FfxFloat32 ffxZeroOneAnd(FfxFloat32 x)
Conditional free logic signed NOT operation using two FfxFloat32 values.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32
) – [in] The first value to be fed into the AND OR operator.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2082, column 12)
ffxZeroOneAnd
FfxFloat32x2 ffxZeroOneAnd(FfxFloat32x2 x)
Conditional free logic signed NOT operation using two FfxFloat32 values.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32x2
) – [in] The first value to be fed into the AND OR operator.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2095, column 14)
ffxZeroOneAnd
FfxFloat32x3 ffxZeroOneAnd(FfxFloat32x3 x)
Conditional free logic signed NOT operation using two FfxFloat32 values.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32x3
) – [in] The first value to be fed into the AND OR operator.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2108, column 14)
ffxZeroOneAnd
FfxFloat32x4 ffxZeroOneAnd(FfxFloat32x4 x)
Conditional free logic signed NOT operation using two FfxFloat32 values.
Returns: Result of the AND OR operation.
Parameters:
x
(FfxFloat32x4
) – [in] The first value to be fed into the AND OR operator.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2121, column 14)
ffxZeroOneOr
FfxFloat32 ffxZeroOneOr(FfxFloat32 x, FfxFloat32 y)
Conditional free logic OR operation using two FfxFloat32 values.
Returns: Result of the OR operation.
Parameters:
x
(FfxFloat32
) – [in] The first value to be fed into the OR operator.y
(FfxFloat32
) – [in] The second value to be fed into the OR operator.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2135, column 12)
ffxZeroOneOr
FfxFloat32x2 ffxZeroOneOr(FfxFloat32x2 x, FfxFloat32x2 y)
Conditional free logic OR operation using two FfxFloat32 values.
Returns: Result of the OR operation.
Parameters:
x
(FfxFloat32x2
) – [in] The first value to be fed into the OR operator.y
(FfxFloat32x2
) – [in] The second value to be fed into the OR operator.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2149, column 14)
ffxZeroOneOr
FfxFloat32x3 ffxZeroOneOr(FfxFloat32x3 x, FfxFloat32x3 y)
Conditional free logic OR operation using two FfxFloat32 values.
Returns: Result of the OR operation.
Parameters:
x
(FfxFloat32x3
) – [in] The first value to be fed into the OR operator.y
(FfxFloat32x3
) – [in] The second value to be fed into the OR operator.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2163, column 14)
ffxZeroOneOr
FfxFloat32x4 ffxZeroOneOr(FfxFloat32x4 x, FfxFloat32x4 y)
Conditional free logic OR operation using two FfxFloat32 values.
Returns: Result of the OR operation.
Parameters:
x
(FfxFloat32x4
) – [in] The first value to be fed into the OR operator.y
(FfxFloat32x4
) – [in] The second value to be fed into the OR operator.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2177, column 14)
ffxZeroOneSelect
FfxFloat32 ffxZeroOneSelect(FfxFloat32 x, FfxFloat32 y, FfxFloat32 z)
Choose between two FfxFloat32 values if the first paramter is greater than zero.
Returns: The selected value.
Parameters:
x
(FfxFloat32
) – [in] The value to compare against zero.y
(FfxFloat32
) – [in] The value to return if the comparision is greater than zero.z
(FfxFloat32
) – [in] The value to return if the comparision is less than or equal to zero.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2192, column 12)
ffxZeroOneSelect
FfxFloat32x2 ffxZeroOneSelect(FfxFloat32x2 x, FfxFloat32x2 y, FfxFloat32x2 z)
Choose between two FfxFloat32 values if the first paramter is greater than zero.
Returns: The selected value.
Parameters:
x
(FfxFloat32x2
) – [in] The value to compare against zero.y
(FfxFloat32x2
) – [in] The value to return if the comparision is greater than zero.z
(FfxFloat32x2
) – [in] The value to return if the comparision is less than or equal to zero.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2208, column 14)
ffxZeroOneSelect
FfxFloat32x3 ffxZeroOneSelect(FfxFloat32x3 x, FfxFloat32x3 y, FfxFloat32x3 z)
Choose between two FfxFloat32 values if the first paramter is greater than zero.
Returns: The selected value.
Parameters:
x
(FfxFloat32x3
) – [in] The value to compare against zero.y
(FfxFloat32x3
) – [in] The value to return if the comparision is greater than zero.z
(FfxFloat32x3
) – [in] The value to return if the comparision is less than or equal to zero.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2224, column 14)
ffxZeroOneSelect
FfxFloat32x4 ffxZeroOneSelect(FfxFloat32x4 x, FfxFloat32x4 y, FfxFloat32x4 z)
Choose between two FfxFloat32 values if the first paramter is greater than zero.
Returns: The selected value.
Parameters:
x
(FfxFloat32x4
) – [in] The value to compare against zero.y
(FfxFloat32x4
) – [in] The value to return if the comparision is greater than zero.z
(FfxFloat32x4
) – [in] The value to return if the comparision is less than or equal to zero.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2240, column 14)
ffxZeroOneIsSigned
FfxFloat32 ffxZeroOneIsSigned(FfxFloat32 x)
Given a value, returns 1.0 if less than zero and 0.0 if not.
Returns: Result of the sign value.
Parameters:
x
(FfxFloat32
) – [in] The value to be compared.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2254, column 12)
ffxZeroOneIsSigned
FfxFloat32x2 ffxZeroOneIsSigned(FfxFloat32x2 x)
Given a value, returns 1.0 if less than zero and 0.0 if not.
Returns: Result of the sign value.
Parameters:
x
(FfxFloat32x2
) – [in] The value to be compared.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2267, column 14)
ffxZeroOneIsSigned
FfxFloat32x3 ffxZeroOneIsSigned(FfxFloat32x3 x)
Given a value, returns 1.0 if less than zero and 0.0 if not.
Returns: Result of the sign value.
Parameters:
x
(FfxFloat32x3
) – [in] The value to be compared.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2280, column 14)
ffxZeroOneIsSigned
FfxFloat32x4 ffxZeroOneIsSigned(FfxFloat32x4 x)
Given a value, returns 1.0 if less than zero and 0.0 if not.
Returns: Result of the sign value.
Parameters:
x
(FfxFloat32x4
) – [in] The value to be compared.
Returns: FfxFloat32x4
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2293, column 14)
ffxRec709FromLinear
FfxFloat32 ffxRec709FromLinear(FfxFloat32 color)
Compute a Rec.709 color space.
Rec.709 is used for some HDTVs.
Both Rec.709 and sRGB have a linear segment which as spec’ed would intersect the curved segment 2 times. (a.) For 8-bit sRGB, steps {0 to 10.3} are in the linear region (4% of the encoding range). (b.) For 8-bit 709, steps {0 to 20.7} are in the linear region (8% of the encoding range).
Returns: The color in linear space.
Parameters:
color
(FfxFloat32
) – [in] The color to convert to Rec. 709.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2312, column 12)
ffxRec709FromLinear
FfxFloat32x2 ffxRec709FromLinear(FfxFloat32x2 color)
Compute a Rec.709 color space.
Rec.709 is used for some HDTVs.
Both Rec.709 and sRGB have a linear segment which as spec’ed would intersect the curved segment 2 times. (a.) For 8-bit sRGB, steps {0 to 10.3} are in the linear region (4% of the encoding range). (b.) For 8-bit 709, steps {0 to 20.7} are in the linear region (8% of the encoding range).
Returns: The color in linear space.
Parameters:
color
(FfxFloat32x2
) – [in] The color to convert to Rec. 709.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2333, column 14)
ffxRec709FromLinear
FfxFloat32x3 ffxRec709FromLinear(FfxFloat32x3 color)
Compute a Rec.709 color space.
Rec.709 is used for some HDTVs.
Both Rec.709 and sRGB have a linear segment which as spec’ed would intersect the curved segment 2 times. (a.) For 8-bit sRGB, steps {0 to 10.3} are in the linear region (4% of the encoding range). (b.) For 8-bit 709, steps {0 to 20.7} are in the linear region (8% of the encoding range).
Returns: The color in linear space.
Parameters:
color
(FfxFloat32x3
) – [in] The color to convert to Rec. 709.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2354, column 14)
ffxLinearFromRec709
FfxFloat32 ffxLinearFromRec709(FfxFloat32 color)
Compute a linear value from a REC.709 value.
Returns: A value in linear space.
Parameters:
color
(FfxFloat32
) – [in] The value to convert to linear from REC.709.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2369, column 12)
ffxLinearFromRec709
FfxFloat32x2 ffxLinearFromRec709(FfxFloat32x2 color)
Compute a linear value from a REC.709 value.
Returns: A value in linear space.
Parameters:
color
(FfxFloat32x2
) – [in] The value to convert to linear from REC.709.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2384, column 14)
ffxLinearFromRec709
FfxFloat32x3 ffxLinearFromRec709(FfxFloat32x3 color)
Compute a linear value from a REC.709 value.
Returns: A value in linear space.
Parameters:
color
(FfxFloat32x3
) – [in] The value to convert to linear from REC.709.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2399, column 14)
ffxGammaFromLinear
FfxFloat32 ffxGammaFromLinear(FfxFloat32 value, FfxFloat32 power)
Compute a gamma value from a linear value.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Note: ‘rcpX’ is ‘1/x’, where the ‘x’ is what would be used in ffxLinearFromGamma.
Returns: A value in gamma space.
Parameters:
value
(FfxFloat32
) – [in] The value to convert to gamma space from linear.power
(FfxFloat32
) – [in] The reciprocal of power value used for the gamma curve.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2419, column 12)
ffxGammaFromLinear
FfxFloat32x2 ffxGammaFromLinear(FfxFloat32x2 value, FfxFloat32 power)
Compute a gamma value from a linear value.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Note: ‘rcpX’ is ‘1/x’, where the ‘x’ is what would be used in ffxLinearFromGamma.
Returns: A value in gamma space.
Parameters:
value
(FfxFloat32x2
) – [in] The value to convert to gamma space from linear.power
(FfxFloat32
) – [in] The reciprocal of power value used for the gamma curve.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2437, column 14)
ffxGammaFromLinear
FfxFloat32x3 ffxGammaFromLinear(FfxFloat32x3 value, FfxFloat32 power)
Compute a gamma value from a linear value.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Note: ‘rcpX’ is ‘1/x’, where the ‘x’ is what would be used in ffxLinearFromGamma.
Returns: A value in gamma space.
Parameters:
value
(FfxFloat32x3
) – [in] The value to convert to gamma space from linear.power
(FfxFloat32
) – [in] The reciprocal of power value used for the gamma curve.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2455, column 14)
ffxLinearFromGamma
FfxFloat32 ffxLinearFromGamma(FfxFloat32 color, FfxFloat32 power)
Compute a linear value from a value in a gamma space.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Returns: A value in linear space.
Parameters:
color
(FfxFloat32
) – [in] The value to convert to linear in gamma space.power
(FfxFloat32
) – [in] The power value used for the gamma curve.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2471, column 12)
ffxLinearFromGamma
FfxFloat32x2 ffxLinearFromGamma(FfxFloat32x2 color, FfxFloat32 power)
Compute a linear value from a value in a gamma space.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Returns: A value in linear space.
Parameters:
color
(FfxFloat32x2
) – [in] The value to convert to linear in gamma space.power
(FfxFloat32
) – [in] The power value used for the gamma curve.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2487, column 14)
ffxLinearFromGamma
FfxFloat32x3 ffxLinearFromGamma(FfxFloat32x3 color, FfxFloat32 power)
Compute a linear value from a value in a gamma space.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Returns: A value in linear space.
Parameters:
color
(FfxFloat32x3
) – [in] The value to convert to linear in gamma space.power
(FfxFloat32
) – [in] The power value used for the gamma curve.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2503, column 14)
ffxPQFromLinear
FfxFloat32 ffxPQFromLinear(FfxFloat32 value)
Compute a PQ value from a linear value.
Returns: A value in linear space.
Parameters:
value
(FfxFloat32
) – [in] The value to convert to PQ from linear.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2516, column 12)
ffxPQFromLinear
FfxFloat32x2 ffxPQFromLinear(FfxFloat32x2 value)
Compute a PQ value from a linear value.
Returns: A value in linear space.
Parameters:
value
(FfxFloat32x2
) – [in] The value to convert to PQ from linear.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2530, column 14)
ffxPQFromLinear
FfxFloat32x3 ffxPQFromLinear(FfxFloat32x3 value)
Compute a PQ value from a linear value.
Returns: A value in linear space.
Parameters:
value
(FfxFloat32x3
) – [in] The value to convert to PQ from linear.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2544, column 14)
ffxLinearFromPQ
FfxFloat32 ffxLinearFromPQ(FfxFloat32 value)
Compute a linear value from a value in a PQ space.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Returns: A value in linear space.
Parameters:
value
(FfxFloat32
) – [in] The value to convert to linear in PQ space.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2560, column 12)
ffxLinearFromPQ
FfxFloat32x2 ffxLinearFromPQ(FfxFloat32x2 value)
Compute a linear value from a value in a PQ space.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Returns: A value in linear space.
Parameters:
value
(FfxFloat32x2
) – [in] The value to convert to linear in PQ space.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2576, column 14)
ffxLinearFromPQ
FfxFloat32x3 ffxLinearFromPQ(FfxFloat32x3 value)
Compute a linear value from a value in a PQ space.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Returns: A value in linear space.
Parameters:
value
(FfxFloat32x3
) – [in] The value to convert to linear in PQ space.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2592, column 14)
ffxSrgbFromLinear
FfxFloat32 ffxSrgbFromLinear(FfxFloat32 value)
Compute an SRGB value from a linear value.
Returns: A value in SRGB space.
Parameters:
value
(FfxFloat32
) – [in] The value to convert to SRGB from linear.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2606, column 12)
ffxSrgbFromLinear
FfxFloat32x2 ffxSrgbFromLinear(FfxFloat32x2 value)
Compute an SRGB value from a linear value.
Returns: A value in SRGB space.
Parameters:
value
(FfxFloat32x2
) – [in] The value to convert to SRGB from linear.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2621, column 14)
ffxSrgbFromLinear
FfxFloat32x3 ffxSrgbFromLinear(FfxFloat32x3 value)
Compute an SRGB value from a linear value.
Returns: A value in SRGB space.
Parameters:
value
(FfxFloat32x3
) – [in] The value to convert to SRGB from linear.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2636, column 14)
ffxLinearFromSrgb
FfxFloat32 ffxLinearFromSrgb(FfxFloat32 value)
Compute a linear value from a value in a SRGB space.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Returns: A value in linear space.
Parameters:
value
(FfxFloat32
) – [in] The value to convert to linear in SRGB space.
Returns: FfxFloat32
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2653, column 12)
ffxLinearFromSrgb
FfxFloat32x2 ffxLinearFromSrgb(FfxFloat32x2 value)
Compute a linear value from a value in a SRGB space.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Returns: A value in linear space.
Parameters:
value
(FfxFloat32x2
) – [in] The value to convert to linear in SRGB space.
Returns: FfxFloat32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2670, column 14)
ffxLinearFromSrgb
FfxFloat32x3 ffxLinearFromSrgb(FfxFloat32x3 value)
Compute a linear value from a value in a SRGB space.
Typically 2.2 for some PC displays, or 2.4-2.5 for CRTs, or 2.2 FreeSync2 native.
Returns: A value in linear space.
Parameters:
value
(FfxFloat32x3
) – [in] The value to convert to linear in SRGB space.
Returns: FfxFloat32x3
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2687, column 14)
ffxRemapForQuad
FfxUInt32x2 ffxRemapForQuad(FfxUInt32 a)
A remapping of 64x1 to 8x8 imposing rotated 2x2 pixel quads in quad linear.
Remap illustration: 543210 ~~~~~~ ..xxx. yy…y
Returns: The remapped 2D coordinates.
Parameters:
a
(FfxUInt32
) – [in] The input 1D coordinates to remap.
Returns: FfxUInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2709, column 13)
ffxRemapForWaveReduction
FfxUInt32x2 ffxRemapForWaveReduction(FfxUInt32 a)
A helper function performing a remap 64x1 to 8x8 remapping which is necessary for 2D wave reductions.
The 64-wide lane indices to 8x8 remapping is performed as follows: 00 01 08 09 10 11 18 19 02 03 0a 0b 12 13 1a 1b 04 05 0c 0d 14 15 1c 1d 06 07 0e 0f 16 17 1e 1f 20 21 28 29 30 31 38 39 22 23 2a 2b 32 33 3a 3b 24 25 2c 2d 34 35 3c 3d 26 27 2e 2f 36 37 3e 3f
Returns: The remapped 2D coordinates.
Parameters:
a
(FfxUInt32
) – [in] The input 1D coordinate to remap.
Returns: FfxUInt32x2
Source: sdk/include/FidelityFX/gpu/ffx_core_gpu_common.h
(line 2733, column 13)