Skip to content

Extending VectorTypes for double precision types#80

Merged
natevm merged 2 commits intogprt-org:masterfrom
Waqar-ukaea:double-math-types
Jul 16, 2025
Merged

Extending VectorTypes for double precision types#80
natevm merged 2 commits intogprt-org:masterfrom
Waqar-ukaea:double-math-types

Conversation

@Waqar-ukaea
Copy link
Contributor

This PR extends the VectorTypes.h to also include definitions for double1, double2, double3 and double4 for use within GPRT shaders.

As part of the XDG project, we would like an implementation of double precision ray tracing using GPRT similar to the h5m-reader. In the past, it seems GPRT also included a linalg.h header, see gprt @ 77642f2 which was used within the h5m-reader to create double precision buffers.

At some point though the linalg.h header has been replaced by the math utlities found here https://github.com/gprt-org/GPRT/tree/master/gprt/math, which do not currently include any definitions for vectors of doubles.

This may be missing some additional utility/functions but as far as a I can tell it does work.

@natevm natevm merged commit 9206573 into gprt-org:master Jul 16, 2025
2 checks passed
@natevm
Copy link
Contributor

natevm commented Jul 16, 2025

Our host-side math backend is pretty chaotic. A lot of it was taken from Falcor. At some point, I'd like to more directly integrate Slang's math library which comes bundled with the Vulkan SDK. In the interim, hacks are welcome.

@pshriwise pshriwise mentioned this pull request Sep 17, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants