Sylvester Hesp
1053c72575
Blessed these const_mat2 errors
...
`const_mat2` is deprecated in `glam`. We need to fix the tests.
2022-11-03 17:03:54 +02:00
Eduard-Mihai Burtescu
65f892eb50
attr: fix #[spirv(flat)]
checking to match the Vulkan spec.
2022-10-27 11:42:23 +03:00
Sylvester Hesp
c3a9b9fd3e
Migration from register_attr to register_tool ( #926 )
...
* Accept `#[rust_gpu::spirv()]` attributes rather than `#[spirv()]` in backend
* Implemented `#[spirv(..)]` proc macro attribute for all platforms that conditionally translates to `#[rust_gpu::spirv()]` based on platform
* Changed `SpirvBuilder` to always apply `register_tool(rust_gpu)` attribute to shader crates
* Updated docs
* Added changelog
2022-10-19 09:50:24 +00:00
molikto
0866cf591a
fix: tests
2022-05-24 15:35:03 +03:00
molikto
cdbf4dec1d
warn when inline(never) is not respected
2022-05-24 15:35:03 +03:00
Ashley Hauck
480cd048e0
Fuse OpPtrAccessChain with previous OpAccessChain ( #835 )
...
* Fuse OpPtrAccessChain with previous OpAccessChain
* constant-fold add, and change mul to wrap
2021-12-28 11:39:37 +01:00
Ashley Hauck
d26716b881
Add error for insts not allowed outside fragment ( #821 )
...
* Add error for insts not allowed outside fragment
* make get_name return entry point names too
2021-12-14 08:04:50 +00:00
Ashley Hauck
340f4bb70a
Error when int doesn't have spirv(flat) ( #815 )
2021-12-06 11:31:26 +01:00
Ashley Hauck
2e4de94a66
Generate bools as bools instead of u8 ( #809 )
...
* Generate bools as bools instead of u8
* convert bool->int select to cast
2021-11-30 13:12:13 +00:00
Ashley Hauck
62548134d2
Add test for issue #329 ( #781 )
2021-10-28 13:07:47 +03:00
Eduard-Mihai Burtescu
111bebdd68
abi: readjust FnAbi
s to remove unsupported PassMode
s, via query hooks.
2021-10-20 22:13:03 +03:00
Ashley Hauck
47d1e75327
Always emit json metadata, and emit entry point names ( #622 )
...
* Always emit json metadata
* Codegen shader entry point names
* Fix tests
2021-05-24 09:45:58 +02:00
Ashley Hauck
943f09fef7
Emit OpLine instructions ( #616 )
...
* Emit OpLine instructions
2021-05-07 08:57:47 +00:00
XAMPPRocky
9c19414858
Add is_helper_invocation, and cleanup arch & asm functions ( #612 )
2021-05-04 10:51:20 +00:00
Ashley Hauck
9679e615bd
Disable variable pointers by default ( #591 )
2021-04-13 11:30:16 +02:00
Eduard-Mihai Burtescu
7c568ab219
Allow constant references (to constant data), when they're valid SPIR-V.
2021-04-12 11:09:50 +03:00