gpu: Fixed ErrorCallback.init() alignment #233
No reviewers
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach!233
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@PiergiorgioZagaria do you mind updating all locations with a bulk find-and-replace in your editor? Fine to do it in this PR. Shouldn't be too hard, no need to test each one or anything. Seems like there are a lot of locations we need to update:
https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/hexops/mach%24+callback%28if+%28Context+%3D%3D+void%29&patternType=literal
Oh I didn't think about that, will do it right now
I checked and there are more parts where it appears,
https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/hexops/mach%24+%40ptrCast%28Context%2C+%40alignCast%28%40alignOf%28Context%29&patternType=literal
Plus some more that don't use context but also ptrCast(pointer, alignCast(alignOf(Pointer
Good catch, I think we only need to do it in
Callbackstruct types' init methods.A find and replace for
@ptrCast(Context, @alignCast(@alignOf(Context)should be good enough I think.(unrelated, looks like some of these locations need to be updated with
if (Context == void) {} else @ptrCasttoo for consistency /voidcontext support.)Looks great, thanks so much again!
No prob