Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double precision floating point as shader uniforms and texture buffers. #135

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Robadob
Copy link
Member

@Robadob Robadob commented Aug 12, 2024

WIP/Experimentation

Double support in texture buffers appears unsupported, there are no 8 byte type image formats, likewise the floatbitstoint() GLSL functions, do not have an equivalent for unpacking two floats to a double. Hence, we would need to perform this conversion ourselves, prior to the buffer being passed to OpenGL to support doubles.

double uniforms may now work, but requires testing. Double is supported since OpenGL 4.0. In the process of handling this, I noticed that static uniform mat4 would be losing data as they were stored into a vec4, so final 12 float would all be dropped!

…der uniforms and texture buffers.

Texture buffer support is blocked by CUDATextureBuffer type being templated, making it awkward to have dynamic support for any type.
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.

1 participant