83template<
typename T,
typename U>
constexpr T pow(
T,
U)
RET;
105#define ceil glsl::ceil
107#define exp2 glsl::exp2
108#define floor glsl::floor
110#define frexp glsl::frexp
111#define isinf glsl::isinf
112#define isnan glsl::isnan
114#define log2 glsl::log2
115#define modf glsl::modf
117#define round glsl::round
118#define sqrt glsl::sqrt
119#define trunc glsl::trunc
120#define ldexp glsl::ldexp
121#define acos glsl::acos
122#define acosh glsl::acosh
123#define asin glsl::asin
124#define asinh glsl::asinh
125#define atan glsl::atan
126#define atanh glsl::atanh
128#define cosh glsl::cosh
130#define sinh glsl::sinh
132#define tanh glsl::tanh
134template<
typename T>
constexpr T max(
T,
T)
RET;
135template<
typename T>
constexpr T min(
T,
T)
RET;
139template<
typename T,
typename U>
constexpr T max(
T,
U)
RET;
140template<
typename T,
typename U>
constexpr T min(
T,
U)
RET;
163#define select(A, B, C) mix(A, B, C)
164#define saturate(a) clamp(a, 0.0f, 1.0f)
183#define EQ_OP(type, ...) \
184 inline bool operator==(type a, type b) \
186 return __VA_ARGS__; \
311uint rayQueryGetIntersectionInstanceShaderBindingTableRecordOffset(
rayQuery ,
VecBase< int, D > findMSB(VecOp< int, D >) RET
float rayQueryGetIntersectionT(rayQuery, bool) RET
int atomicMin(int &, int) RET
const uint gpu_RayFlagsCullFrontFacingTriangles
VecBase< bool, D > notEqual(VecOp< T, D >, VecOp< T, D >) RET
const uint gpu_RayFlagsCullBackFacingTriangles
const uint gpu_RayFlagsOpaque
VecBase< int, D > bitfieldExtract(VecOp< int, D >, int, int) RET
T smoothstep(T, T, T) RET
void gpu_discard_fragment()
VecBase< bool, D > greaterThanEqual(VecOp< T, D >, VecOp< T, D >) RET
float4 unpackSnorm4x8(uint) RET
bool rayQueryProceed(rayQuery) RET
float4x3 rayQueryGetIntersectionObjectToWorld(rayQuery, bool) RET
VecBase< int, D > floatBitsToInt(VecOp< float, D >) RET
VecBase< bool, D > lessThanEqual(VecOp< T, D >, VecOp< T, D >) RET
float3 rayQueryGetIntersectionObjectRayOrigin(rayQuery, bool) RET
float2 rayQueryGetIntersectionBarycentrics(rayQuery, bool) RET
b[1] b &&[1] b &&[1] b &&[1] b &&[1] b[3] b &&[1] b[3] float determinant(MatBase< C, R >) RET
const uint gpu_RayFlagsTerminateOnFirstHit
bool any(VecOp< bool, D >) RET
int atomicMax(int &, int) RET
VecBase< float, D > intBitsToFloat(VecOp< int, D >) RET
void memoryBarrierImage()
int atomicExchange(int &, int) RET
MatBase< C, R > inverse(MatBase< C, R >) RET
uint packUnorm2x16(float2) RET
VecBase< T, D > refract(VecOp< T, D >, VecOp< T, D >, float) RET
uint rayQueryGetIntersectionType(rayQuery, bool) RET
float3 rayQueryGetWorldRayDirection(rayQuery) RET
int atomicCompSwap(int &, int, int) RET
VecBase< T, D > reflect(VecOp< T, D >, VecOp< T, D >) RET
float3 rayQueryGetIntersectionObjectRayDirection(rayQuery, bool) RET
VecBase< bool, D > greaterThan(VecOp< T, D >, VecOp< T, D >) RET
uint rayQueryGetIntersectionInstanceId(rayQuery, bool) RET
float4 unpackUnorm4x8(uint) RET
VecBase< float, D > normalize(VecOp< float, D >) RET
float dot(VecOp< float, D >, VecOp< float, D >) RET
uint packSnorm4x8(float4) RET
const uint gpu_RayFlagsNone
uint rayQueryGetIntersectionPrimitiveIndex(rayQuery, bool) RET
VecBase< T, D > faceforward(VecOp< T, D >, VecOp< T, D >, VecOp< T, D >) RET
const uint gpu_RayQueryCommittedIntersectionTriangle
constexpr T inversesqrt(T) RET
int atomicAnd(int &, int) RET
void rayQueryTerminate(rayQuery)
bool rayQueryGetIntersectionCandidateAABBOpaque(rayQuery) RET
float2 unpackSnorm2x16(uint) RET
uint rayQueryGetIntersectionGeometryIndex(rayQuery, bool) RET
const uint gpu_RayFlagsCullNoOpaque
VecBase< float, D > constexpr mod(VecOp< float, D >, VecOp< float, D >) RET
float rayQueryGetRayTMin(rayQuery) RET
uint packUnorm4x8(float4) RET
float distance(float, float) RET
int atomicXor(int &, int) RET
uint rayQueryGetIntersectionInstanceCustomIndex(rayQuery, bool) RET
VecBase< uint, D > floatBitsToUint(VecOp< float, D >) RET
VecBase< int, D > bitfieldInsert(VecOp< int, D >, VecOp< int, D >, int, int) RET
int atomicAdd(int &, int) RET
bool all(VecOp< bool, D >) RET
const uint gpu_RayFlagsNoOpaque
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
float2 unpackHalf2x16(uint) RET
MatBase< R, C > transpose(MatBase< C, R >) RET
float4x3 rayQueryGetIntersectionWorldToObject(rayQuery, bool) RET
VecBase< int, D > bitCount(VecOp< int, D >) RET
void memoryBarrierShared()
const uint gpu_RayQueryCandidateIntersectionTriangle
VecBase< float, D > uintBitsToFloat(VecOp< uint, D >) RET
void rayQueryConfirmIntersection(rayQuery)
void memoryBarrierBuffer()
const uint gpu_RayFlagsSkipClosestHitShader
VecBase< float, 3 > cross(VecOp< float, 3 >, VecOp< float, 3 >) RET
VecBase< bool, D > lessThan(VecOp< T, D >, VecOp< T, D >) RET
const uint gpu_RayQueryCommittedIntersectionGenerated
constexpr T radians(T) RET
VecBase< int, D > bitfieldReverse(VecOp< int, D >) RET
void groupMemoryBarrier()
bool rayQueryGetIntersectionFrontFace(rayQuery, bool) RET
uint packHalf2x16(float2) RET
VecBase< bool, D > equal(VecOp< T, D >, VecOp< T, D >) RET
float2 unpackUnorm2x16(uint) RET
const uint gpu_RayFlagsCullOpaque
const uint gpu_RayQueryCandidateIntersectionAABB
constexpr T clamp(T, U, U) RET
float length(VecOp< float, D >) RET
VecBase< int, D > findLSB(VecOp< int, D >) RET
void rayQueryGenerateIntersection(rayQuery, float)
float3 rayQueryGetWorldRayOrigin(rayQuery) RET
uint packSnorm2x16(float2) RET
void rayQueryInitialize(rayQuery, accelerationStructure, uint, uint, float3, float, float3, float)
const uint gpu_RayQueryCommittedIntersectionNone
int atomicOr(int &, int) RET
constexpr T degrees(T) RET
VecBase< bool, D > operator!(VecOp< bool, D >) RET
VecBase< bool, D > isinf(VecOp< float, D >) RET
VecBase< bool, D > isnan(VecOp< float, D >) RET
constexpr T pow(T, U) RET