mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 09:34:09 +01:00
[hlsl-out] Add more padding when necessary (#1814)
* [hlsl-out] add padding at the end of structs and after struct members of type matrix and array (when necessary) * use wrapped constructor fn for constants * add array as fn arg test * fix glsl array fn arg * add wrapped constructor for arrays * [glsl-out] support multidimensional arrays * address comments
This commit is contained in:
1 parent
0e77d26241
commit
bd62887a13
24 files changed
+1088
-450
No files matched your search
@@ -0,0 +1,22 @@
|
||||
(
|
||||
spv: (
|
||||
version: (1, 1),
|
||||
debug: true,
|
||||
adjust_coordinate_space: false,
|
||||
),
|
||||
msl: (
|
||||
lang_version: (2, 0),
|
||||
per_stage_map: (
|
||||
vs: (
|
||||
resources: {
|
||||
(group: 0, binding: 0): (buffer: Some(0), mutable: false),
|
||||
(group: 0, binding: 1): (buffer: Some(1), mutable: false),
|
||||
(group: 0, binding: 2): (buffer: Some(2), mutable: false),
|
||||
},
|
||||
),
|
||||
),
|
||||
inline_samplers: [],
|
||||
spirv_cross_compatibility: false,
|
||||
fake_missing_bindings: false,
|
||||
),
|
||||
)
|
||||
Reference in new issue
Block a user