Closed tadeohepperle closed 3 months ago
There is this function here in vendor/wgpu:
RenderPassEncoderSetPushConstants :: proc(encoder: RenderPassEncoder, stages: ShaderStageFlags, offset: u32, sizeBytes: u32, data: cstring)
I don't think the cstring type here makes sense (we provide the sizeBytes anyway and a push constant ptr should not rely on zero termination), a rawptr should be more fitting according to the official headers:
cstring
sizeBytes
rawptr
https://github.com/gfx-rs/wgpu-native/blob/a1ede115d0d669b88b34447e58752335cb882e61/ffi/wgpu.h#L273
There is this function here in vendor/wgpu:
I don't think the
cstring
type here makes sense (we provide thesizeBytes
anyway and a push constant ptr should not rely on zero termination), arawptr
should be more fitting according to the official headers:https://github.com/gfx-rs/wgpu-native/blob/a1ede115d0d669b88b34447e58752335cb882e61/ffi/wgpu.h#L273