mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
The existing `per_stage_map` field of MSL backend options specifies resource binding maps that apply to all entry points of each stage type. It is useful to have the ability to provide a separate binding index map for each entry point, especially when the same shader module defines multiple entry points of the same stage kind. This patch replaces `per_stage_map` with a new `per_entry_point_map` option where resources are keyed by the entry-point function name.
19 lines
305 B
Plaintext
19 lines
305 B
Plaintext
(
|
|
god_mode: true,
|
|
spv: (
|
|
version: (1, 2),
|
|
),
|
|
msl: (
|
|
lang_version: (2, 2),
|
|
per_entry_point_map: {
|
|
"main": (
|
|
push_constant_buffer: Some(1),
|
|
),
|
|
},
|
|
inline_samplers: [],
|
|
spirv_cross_compatibility: false,
|
|
fake_missing_bindings: false,
|
|
zero_initialize_workgroup_memory: true,
|
|
),
|
|
)
|