Eduard-Mihai Burtescu
3a9e7781d5
builder_spirv: don't keep a whole SpirvValue
in the constants
cache.
2021-04-12 11:09:50 +03:00
Eduard-Mihai Burtescu
84350e31d3
builder_spirv: split out the type field from SpirvConst
.
2021-04-12 11:09:50 +03:00
XAMPPRocky
aa444f007e
Update to glam 0.14 ( #587 )
2021-04-12 08:00:58 +02:00
Anirudh S
439dc5c6a1
Fix grammatical typo ( #588 )
...
Add preposition "to" to make the documentation more clear.
Consulted in the Discord server to confirm this.
2021-04-12 07:34:39 +02:00
Urho Laukkarinen
fccf8418c3
Update .cargo/config guide in the book ( #589 )
...
The .cargo/config snippet in the book was missing
a line without which the build gave an error
`error: Unresolved symbol "memcmp"`
2021-04-12 07:33:59 +02:00
XAMPPRocky
4163ce68cf
Remove memcmp from spirv-std ( #583 )
2021-04-09 13:52:37 +02:00
Eduard-Mihai Burtescu
8c89b49b66
rustc_codegen_spirv: use FxHash{Map,Set}
instead of the std ones.
2021-04-08 18:02:55 +03:00
XAMPPRocky
98d7dec503
Release 0.4.0-alpha.4 ( #582 )
...
compiletests@0.4.0-alpha.4
compiletests-deps-helper@0.4.0-alpha.4
compute-shader@0.4.0-alpha.4
example-runner-ash@0.4.0-alpha.4
example-runner-cpu@0.4.0-alpha.4
example-runner-wgpu@0.4.0-alpha.4
mouse-shader@0.4.0-alpha.4
multibuilder@0.4.0-alpha.4
rustc_codegen_spirv@0.4.0-alpha.4
shared@0.4.0-alpha.4
simplest-shader@0.4.0-alpha.4
sky-shader@0.4.0-alpha.4
spirv-builder@0.4.0-alpha.4
spirv-std@0.4.0-alpha.4
spirv-std-macros@0.4.0-alpha.4
Generated by cargo-workspaces
2021-04-08 13:58:43 +03:00
Eduard-Mihai Burtescu
3f641638c8
entry: move call arg ajustments to declare_shader_interface_for_param
.
2021-04-08 10:18:49 +03:00
Eduard-Mihai Burtescu
630e5a61d8
entry: shorten variable
to var
.
2021-04-08 10:18:49 +03:00
Eduard-Mihai Burtescu
f834f989e5
entry: rename declare_interface_global_for_param
to declare_shader_interface_for_param
.
2021-04-08 10:18:49 +03:00
Eduard-Mihai Burtescu
b893c47727
entry: move things around in declare_interface_global_for_param
.
2021-04-08 10:18:49 +03:00
Eduard-Mihai Burtescu
1d1c2951c7
entry: collect OpEntryPoint
operands in declare_interface_global_for_param
.
2021-04-08 10:18:49 +03:00
Eduard-Mihai Burtescu
2b4037832f
spirv_type: fix copy-paste mistake regarding InterfaceBlock
.
2021-04-08 10:18:49 +03:00
Eduard-Mihai Burtescu
4395b84114
Deprecate #[spirv(block)]
and auto-wrap in "interface blocks" instead.
2021-04-05 20:45:59 +03:00
Eduard-Mihai Burtescu
561f0dd984
Clean up the output of assert_ty_eq!
(when it fails).
2021-04-05 20:45:59 +03:00
Eduard-Mihai Burtescu
674649c4cb
entry: tweak spans (mostly to use hir_param.ty_span
in more places).
2021-04-05 20:45:59 +03:00
Eduard-Mihai Burtescu
ad859e681e
entry: check the type of the argument we compute from the global OpVariable
.
2021-04-05 20:45:59 +03:00
Eduard-Mihai Burtescu
6c3ce3fac2
entry: use a Builder
instead of manually emitting into the entry stub.
2021-04-05 20:45:59 +03:00
Eduard-Mihai Burtescu
9bada9362d
entry: return SpirvValue
from declare_interface_global_for_param
.
2021-04-05 20:45:59 +03:00
Eduard-Mihai Burtescu
7cc69e7126
entry: rename declare_parameter
to declare_interface_global_for_param
.
2021-04-05 20:45:59 +03:00
Eduard-Mihai Burtescu
2b15e20f2f
Unbreak CI (fix control_barrier and memory_barrier tests).
2021-04-05 20:45:59 +03:00
XAMPPRocky
dd60da0be6
Add memory_barrier and control_barrier ( #519 )
2021-04-01 16:00:30 +02:00
khyperia
40359bdb56
Add DCE-φ pass
2021-04-01 13:33:07 +02:00
Ashley Hauck
f0f0f318ec
Don't treat OpSelectionMerge as an edge in mem2reg ( #571 )
...
* Don't treat OpSelectionMerge as an edge in mem2reg
* Make outgoing_edges not allocate
* Update test
2021-04-01 10:03:00 +02:00
Ashley Hauck
4fa73bddb4
Infer the storage class for images/samplers/imagesamplers ( #567 )
...
* Infer the storage class for images/samplers/imagesamplers
* format
* Move comment
2021-04-01 07:49:08 +00:00
Eduard-Mihai Burtescu
fc8efd4562
structurizer: treat single-exit regions as unconditionally branching. ( #566 )
2021-03-31 12:04:20 +00:00
Eduard-Mihai Burtescu
9723e12723
structurizer: find and/or cache OpConstant{False,True}
.
2021-03-31 00:41:17 +03:00
XAMPPRocky
f09a5f6e65
Release 0.4.0-alpha.3 ( #560 )
...
compiletests@0.4.0-alpha.3
compiletests-deps-helper@0.4.0-alpha.3
compute-shader@0.4.0-alpha.3
example-runner-ash@0.4.0-alpha.3
example-runner-cpu@0.4.0-alpha.3
example-runner-wgpu@0.4.0-alpha.3
mouse-shader@0.4.0-alpha.3
multibuilder@0.4.0-alpha.3
rustc_codegen_spirv@0.4.0-alpha.3
shared@0.4.0-alpha.3
simplest-shader@0.4.0-alpha.3
sky-shader@0.4.0-alpha.3
spirv-builder@0.4.0-alpha.3
spirv-std@0.4.0-alpha.3
spirv-std-macros@0.4.0-alpha.3
Generated by cargo-workspaces
2021-03-30 11:23:16 +00:00
Eduard-Mihai Burtescu
0e7fdb30f2
#[spirv(uniform)]
is actually immutable in the absence of BufferBlock
. (#558 )
2021-03-30 09:32:59 +00:00
Eduard-Mihai Burtescu
820573a21f
Duplicate SpirvValueKind::ConstantPointer
into a separate FnAddr
variant. ( #557 )
2021-03-30 08:55:37 +00:00
Ashley Hauck
d6ff9cd439
Run DCE twice ( #556 )
2021-03-30 09:44:01 +02:00
Jesse
5e429866da
feat: Added instructions for depth reference and project coordinate image instructions ( #545 )
...
* feat: Added instructions for depth reference and project coordinate image instructions
* docs: add alias annotation for methods in spirv-std/src/textures.rs
2021-03-30 08:14:18 +02:00
Eduard-Mihai Burtescu
59085024e3
Add validation test for DST StorageBuffer
+ #[spirv(block)]
. ( #553 )
2021-03-30 07:36:03 +02:00
Henno
9f25e92d60
Remove sized check from Block translation
2021-03-30 05:35:02 +03:00
XAMPPRocky
3a53968817
Add support for multiple target environments ( #533 )
...
* Add support for multiple target environments
* updates from code review
* Update lib.rs
2021-03-29 18:43:07 +02:00
Henno
05ce407278
Add basic support for struct DSTs ( #504 )
...
* Add basic support for struct DSTs
* Add tests
* cleanup tests
* Update with entry changes, address review
* Address review
* Update allocate_const_scalar.stderr
* Add ArrayStride decoration to OpTypeRuntimeArray
2021-03-29 18:02:09 +02:00
Ashley Hauck
c3a3b20e3c
Add support for outputting multiple modules, one per entry point ( #551 )
...
* Add multimodule feature
* Use -Cllvm-args instead of -Ctarget-feature for multimodule
* Fix cargo.toml
2021-03-29 17:59:03 +02:00
Eduard-Mihai Burtescu
30c9b1fdc0
Enable incremental for release mode via [profile.<...>]
overrides.
2021-03-29 10:29:17 +02:00
Eduard-Mihai Burtescu
db208e7190
Avoid ever building rustc_codegen_spirv more than once in release mode.
2021-03-29 09:05:48 +02:00
Eduard-Mihai Burtescu
e9dc4580a0
default.nix: replace stdenv.lib
with lib
to silence warning.
2021-03-29 07:26:21 +02:00
XAMPPRocky
182bbca7e5
Update mod.rs
2021-03-27 17:12:11 +02:00
Erin Power
3fc6cd5a2f
Release 0.4.0-alpha.2
...
compute-shader@0.4.0-alpha.2
rustc_codegen_spirv@0.4.0-alpha.2
spirv-builder@0.4.0-alpha.2
spirv-std@0.4.0-alpha.2
spirv-std-macros@0.4.0-alpha.2
Generated by cargo-workspaces
2021-03-26 13:23:23 +01:00
khyperia
f8917fb2c7
CI test format
2021-03-26 13:15:29 +01:00
khyperia
eccd3b2559
run format on tests
2021-03-26 13:15:29 +01:00
khyperia
bc5c45f696
docs
2021-03-26 13:15:29 +01:00
khyperia
d3605f79c7
Add #[spirv(invariant)]
2021-03-26 13:15:29 +01:00
XAMPPRocky
3da44847ec
Make derivative arch functions public
2021-03-26 13:13:58 +01:00
XAMPPRocky
062eb58431
Update glam ( #540 )
2021-03-26 09:05:33 +01:00
XAMPPRocky
c3757cb9c7
Update README.md ( #534 )
2021-03-25 16:18:40 +01:00