I've notices two const-related problems in the API related to push constants:
1) WGPUPipelineLayoutExtras::pushConstantRangesis a non-const pointer, while it seems to be a read-only value
2) The data argument of wgpuRenderPassEncoderSetPushConstantsis a non-constvoid*, while this data is also read-only.
The latter one even looks like void * const data, as if someone applied const to the wrong side of the pointer.
I've notices two const-related problems in the API related to push constants:
1)
WGPUPipelineLayoutExtras::pushConstantRanges
is a non-const pointer, while it seems to be a read-only value 2) Thedata
argument ofwgpuRenderPassEncoderSetPushConstants
is a non-constvoid*
, while this data is also read-only.The latter one even looks like
void * const data
, as if someone applied const to the wrong side of the pointer.Is there any reason these pointers are non-const?