mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-12-01 11:13:30 +00:00
00be08e9f8
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.
23 lines
413 B
Plaintext
23 lines
413 B
Plaintext
(
|
|
spv: (
|
|
version: (1, 1),
|
|
debug: true,
|
|
adjust_coordinate_space: false,
|
|
),
|
|
msl: (
|
|
lang_version: (2, 0),
|
|
per_entry_point_map: {
|
|
"main": (
|
|
resources: {
|
|
(group: 0, binding: 0): (buffer: Some(0), mutable: true),
|
|
},
|
|
sizes_buffer: None,
|
|
),
|
|
},
|
|
inline_samplers: [],
|
|
spirv_cross_compatibility: false,
|
|
fake_missing_bindings: false,
|
|
zero_initialize_workgroup_memory: true,
|
|
),
|
|
)
|