mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 15:01:31 +11:00
Fix push constant ranges
This commit is contained in:
parent
bef4517f83
commit
13773ea162
|
@ -2672,10 +2672,7 @@ pub extern "C" fn gfxCreatePipelineLayout(
|
|||
|
||||
let ranges = push_constants.iter().map(|constant| {
|
||||
let stages = conv::map_stage_flags(constant.stageFlags);
|
||||
let start = constant.offset / 4;
|
||||
let size = constant.size / 4;
|
||||
|
||||
(stages, start..start + size)
|
||||
(stages, constant.offset..constant.offset + constant.size)
|
||||
});
|
||||
|
||||
let pipeline_layout = match unsafe { gpu.device.create_pipeline_layout(layouts, ranges) } {
|
||||
|
|
Loading…
Reference in a new issue