-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Struct field misbehavior on gfx backends #8133
Comments
It's not an issue with Struct Field only, but a more generic error with placing
|
Verified that the compiled SNodeTree looks fine, which is also consistent with access instructions in the Kernel: Compiled SNodeTree:
Kernel:
|
Generated SpirV code also looks fine: SpirV crossed to glsl:
|
Now the top-1 suspect is that we made a mistake in binding |
Okay I don't think it's easy to support mixed dtypes of variant number of bits. GFX backend used to support mixed dtypes with the same number of bits, say Now things are different when it comes to To store them into a single root buffer, we'll have to make an array of But instead of casting the loaded |
Describe the bug
Struct field misbehavior on gfx backends.
To Reproduce
function
k()
is expected to return 0, but it returns 1 instead.Log/Screenshots
Additional comments
There may be some problems related to field layout. If we replace the type of
b
withti.i32
, such error would not appear.The text was updated successfully, but these errors were encountered: