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

Missing case for T_FLOAT4 in AllocateTextureGPU #123

Open
wouterraateland opened this issue Aug 3, 2021 · 0 comments
Open

Missing case for T_FLOAT4 in AllocateTextureGPU #123

wouterraateland opened this issue Aug 3, 2021 · 0 comments

Comments

@wouterraateland
Copy link

The project throws an "invalid configuration" error when adding a float4 channel to a gvdb instance.
This seems to be due to the function Allocator::AllocateTextureGPU, located in gvdb_allocator.cpp.

Adding the following lines in the switch statements above the call to cuArray3DCreate fixes the problem for me:

case T_FLOAT4:
      desc.Format = CU_AD_FORMAT_FLOAT;
      desc.NumChannels = 4;
      break;

I'm just getting started with GVDB, so perhaps I'm making another mistake, but I thought It'd be good to bring this simple fix to you attention anyway.

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

No branches or pull requests

1 participant