Sylvester Hesp
faf5c1321b
Fixed compile error due to earlier linter fix
2022-08-30 13:47:08 +03:00
Sylvester Hesp
6237c65544
Linter fix
2022-08-30 13:47:08 +03:00
Sylvester Hesp
358a54a8f2
Alternative dead_code warning fix
...
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
2022-08-30 13:47:08 +03:00
Sylvester Hesp
ac160444ba
Silenced dead code warning
...
Little unsure about this though, scary that it pops up all of a sudden while obviously being used by the functions below.
2022-08-30 13:47:08 +03:00
Sylvester Hesp
621cd48e5d
Fixed linter
2022-08-22 23:08:29 +03:00
Sylvester Hesp
805297146b
Update to 0.4.0-alpha.14 ( #905 )
...
* Changed version of all unpublished crates to 0.0.0
* New version: v0.4.0-alpha.14
* Fixed versions in deny.toml
2022-08-12 12:38:45 +02:00
Sylvester Hesp
f41625d70a
Renamed spirv-types to spirv-std-types ( #904 )
2022-08-12 01:49:50 +00:00
Sylvester Hesp
fde567ed2d
Updated versions to 0.4.0-alpha.13 ( #899 )
...
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* (cargo-release) version 0.4.0-alpha.13
* Updated versions in local dependencies as well
2022-08-11 12:34:07 +02:00
BeastLe9enD
f69d94ed27
Update number documentation
...
Co-authored-by: Eduard-Mihai Burtescu <edy.burt@gmail.com>
2022-08-09 13:59:15 +03:00
BeastLe9enD
7d7f2fe5a6
Improve documentation & add Number trait
2022-08-09 13:59:15 +03:00
BeastLe9enD
9123a0141c
Remove ext suffix from float atomic functions
2022-08-09 13:59:15 +03:00
BeastLe9enD
6387d2156f
Add low-level atomic instructions
2022-08-09 13:59:15 +03:00
Ashley Ruglys
c36be918ba
Bump the latest allowed glam version to 0.21
2022-08-09 04:05:07 +03:00
Ashley
11e21c6412
Add a OpAtomicIIncrement function to arch ( #839 )
2022-01-13 17:32:33 +02:00
Ashley Hauck
f780364317
rustup update ( #840 )
...
* rustup update
* asm->core::arch::asm
2022-01-13 17:27:33 +02:00
Ashley Hauck
fe5c7716ed
Fix ByteAddressableBuffer PassMode::Pair ( #837 )
2022-01-10 09:35:03 +00:00
Emil Ernerfeldt
3067848d1c
Update to glam 0.20 ( #831 )
2021-12-27 09:52:18 +01:00
Ashley Hauck
9673f39967
A whole host of minor tweaks and clippy fixes ( #824 )
2021-12-14 07:45:45 +00:00
Ashley
da7c3ed71f
Add a RayQuery::confirm_intersection function ( #822 )
2021-12-09 13:00:35 +00:00
Ashley Hauck
2ca5826e55
rustup update ( #816 )
...
* rustup update
* Test fixes
2021-12-06 11:31:43 +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
9fd3c9e172
Add an IndexUnchecked
trait that uses asm!
( #805 )
...
* Add an IndexUnchecked trait to spirv-std/arch
* Slap some #[spirv_std_macros::gpu_only] on there
* Spelling
* Add safety sections to the docs
* Improve documentation, implement for non-spirv targets
2021-11-29 07:56:13 +01:00
Benjamin Bouvier
c1dd14d863
Remove unused dependencies in rust-gpu ( #800 )
2021-11-22 13:12:43 +00:00
Ashley Hauck
1517a8bdd6
Document spirv-std, and add warn(missing_docs) ( #784 )
2021-10-28 10:10:44 +00:00
Ashley Hauck
f58c6f20af
rustup update, and edition = 2021 ( #775 )
2021-10-26 10:24:44 +00:00
Hannes Vernooij
4831789bbb
added memory barrier intrinsics to spirv-std ( #769 )
...
* added memory barrier intrinsics to spirv-std
* added function-level docs
* added unit-tests
constants could not be validated in tests because of the limited output
* clippy fixes
* improved documentation
* Added missing features to device_memory and all_memory barrier intrinsics.
2021-10-26 09:15:50 +02:00
Ashley
e5c2953ea6
Add debug_printf!
and debug_printfln!
macros that uses the DebugPrintf extension ( #768 )
2021-10-23 10:05:03 +02:00
Ashley Hauck
e2db97f899
Update dependencies ( #765 )
2021-10-14 14:38:15 +00:00
Ashley
f8a1130377
Add arch functions for the GLSL.std.450
S/U Min/Max functions ( #763 )
...
* Add (un)signed_(min|max) glsl functinos
* Add gpu_only to call glsl op
2021-10-12 08:49:02 +02:00
Ashley
14e2152198
Add an read_clock_khr
function that calls OpReadClockKHR
( #757 )
...
* Add support for OpReadClockKHR
* Use a const scope
* Use full scope import path
* Apply some suggestions
* Add cfg flags and scopes as raw u32s
* Run cargo fmt
* Fix comment accuracy
* Update crates/rustc_codegen_spirv/src/spirv_type_constraints.rs
Co-authored-by: Ashley Hauck <953151+khyperia@users.noreply.github.com>
* Run rustfmt
* Add the shader clock feature and capability to the compile test rust flags and bless the changed test errors
Co-authored-by: Ashley Hauck <953151+khyperia@users.noreply.github.com>
2021-10-08 15:56:00 +02:00
Ashley
4e5f347239
Add SampledImage::sample_by_lod
( #755 )
...
* Add 'SampledImage::sample_by_lod'
* Add a compiletest
* Format the compiletest, but manually because running cargo fmt doesn't seem to do anything 🤷
* Run rustfmt
2021-10-08 10:33:00 +02:00
Ashley Hauck
b692ab5afc
Convert Image<> parameters from enums to integers to make spirv-std build on stable ( #761 )
...
* Convert Image<> parameters from enums to integers to make spirv-std build on stable
* Remove access_qualifier from Image type
It's kernel-mode-only, and we won't ever support kernel mode.
2021-10-07 13:28:33 +02:00
Johan Andersson
2540106965
Support glam 0.18 ( #760 )
2021-10-05 09:24:18 +02:00
Eduard-Mihai Burtescu
6780432b37
rustup: update to nightly-2021-09-29.
2021-09-30 09:26:11 +03:00
Ashley Hauck
eeb67ae748
Replace <const INTERSECTION: u32> with two functions ( #750 )
...
* Replace <const INTERSECTION: u32> with two functions
* Fix doc URLs
2021-09-07 11:30:56 +02:00
Ashley Hauck
92dc64bd06
Make byte addressable buffer take &self, add support for matrix ( #749 )
2021-09-06 08:47:34 +00:00
Ashley Hauck
95da8981ad
Add load/store_unchecked to ByteAddressableBuffer without bounds check ( #746 )
2021-09-03 12:10:01 +00:00
Ashley Hauck
66d6c554d8
Implement ByteAddressableBuffer prototype detached from bindless ( #735 )
2021-08-31 10:26:30 +02:00
Markus Siglreithmaier
f0560824fe
std: fix ray query initialization and proceed result ( #740 )
2021-08-31 10:09:05 +02:00
khyperia
f9c7829bdc
Fix typo
2021-08-20 12:20:14 +03:00
khyperia
0bd0bf0f11
Fix issues with some raytracing functions and add tests
2021-08-20 12:20:14 +03:00
Markus Siglreithmaier
acda7716db
asm: add support for noreturn option ( #717 )
...
* asm: add support for noreturn option
OpUnreachable will be appended as terminator at the end of the asm block.
* asm: implicit label after return or abort terminator
* rework handling
* fix tests and add few comments
* fix tests
2021-08-13 08:50:44 +02:00
Ashley Hauck
44c9fdd8c5
Release v0.4.0-alpha.12 ( #719 )
2021-08-12 10:46:32 +00:00
Ashley Hauck
1a3a12f505
Implement some float packing/unpacking instructions ( #709 )
...
* Implement some float packing/unpacking instructions
* Rename f32xN to vecN in packing functions
2021-08-10 13:54:44 +02:00
Ashley Hauck
12c09cbc5a
Remove implicit bindless and kernel modes ( #710 )
...
* Remove +bindless mode
* Remove +kernel mode
2021-08-10 08:23:24 +02:00
Daniel McNab
9fcc4824af
Use just the small version ( #705 )
2021-08-09 08:58:52 +02:00
Ashley Hauck
a93d6e0f2a
Add sample_bias and gather functions ( #704 )
...
* Add sample_bias function
* Update line numbers
* Add gather function
* Update spirv-tools
CI was failing on "Capability SampledRect is not allowed by Vulkan 1.1
specification (or requires extension)", except locally it was fine, and
I have more up to date spirv-tools than CI, so try bumping the CI
version to see if it's just an out-of-date spirv-val
* Fix gather() in vulkan
* Convert compiler valication into marker traits
2021-08-06 15:26:30 +02:00
Ashley Hauck
819365cbae
Release v0.4.0-alpha.11 ( #702 )
2021-08-02 14:02:02 +00:00
Ashley Hauck
06f0aa2c3a
Release v0.4.0-alpha.10 ( #679 )
2021-06-23 09:32:09 +02:00
Ashley Hauck
22e4bf4022
Clarify and fix up some image documentation ( #678 )
2021-06-21 14:31:33 +02:00
Ashley Hauck
1cef56bcf3
Cargo update ( #674 )
2021-06-17 17:06:26 +02:00
Ashley Hauck
db5e5fd336
rustup update and embark standard lints v0.4 ( #672 )
...
* rustup update
* update to embark standard lints v0.4
2021-06-17 13:10:19 +02:00
Ashley Hauck
04dfa80266
Nuke arithmetic.rs ( #666 )
2021-06-15 09:43:13 +02:00
Ashley Hauck
fff2b9bce1
Add common image type aliases ( #662 )
2021-06-15 09:19:40 +02:00
Ashley Hauck
e1a000d408
Nuke const generics feature ( #661 )
...
* Nuke const generics feature
* Remove spirv(image_type) attribute
2021-06-15 09:19:23 +02:00
Ashley Hauck
0b23a4282f
Add sampled to example ( #659 )
2021-06-09 12:17:08 +02:00
Ashley Hauck
56722c72d6
Fix wacky typedef ( #647 )
2021-06-09 10:33:06 +02:00
evopen
0de0ad03c3
fix trace ray acceleration structure ( #654 )
2021-06-09 07:53:18 +00:00
Ashley Hauck
31bfc338e0
Release v0.4.0-alpha.9 ( #646 )
2021-06-03 12:35:53 +00:00
Ashley Hauck
92b680fdb9
Release v0.4.0-alpha.8 ( #645 )
2021-06-02 14:06:56 +02:00
Alex Es
985cbed9e4
Added read_subpass for SubpassData images, and necessary attrs for it. ( #643 )
...
* Added read_subpass for SubpassData images, and necessary attrs for it.
* Fix CI; test bless + rustfmt
* Rename attachment_index => input_attachment_index.
* Rustfmt
* Fix clippy warning.
* Review: check for cap rather than adding cap, fix error messages.
2021-06-02 11:02:04 +02:00
Ashley Hauck
f3888d1bb3
Invert glam dependency ( #641 )
2021-06-02 09:28:01 +02:00
Ashley Hauck
5d22f600e7
Add runtime array type ( #596 )
2021-05-31 09:39:06 +00:00
Ashley Hauck
6019f391ec
Add API to enable ext/capabilities, and remove default capabilities ( #630 )
...
* Do not set some capabilities by default
* Fix nondeterminism
* Add required caps to mouse shader
2021-05-26 11:57:16 +02:00
Markus Siglreithmaier
fc268da041
Preserve function abi in gpu_only
macro ( #617 )
...
* Preserve function abi in gpu_only macro
2021-05-17 12:21:52 +02:00
Jasper Bekkers
78ac32be27
Initial work for bindless buffers & textures in rust-gpu ( #450 )
...
This adds the initial support for basic bindless types into rust-gpu. Using this requires a compilation with the `-Ctarget-features=+bindless` flag, or through `.bindless` in the `SpirvBuilder`.
2021-05-05 18:34:39 +02:00
XAMPPRocky
9c19414858
Add is_helper_invocation, and cleanup arch & asm functions ( #612 )
2021-05-04 10:51:20 +00:00
XAMPPRocky
de23683aa3
Update crates/spirv-std/src/lib.rs
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2021-05-04 00:34:54 +03:00
Erin Power
fde6aa0d9e
fix rustdoc with hack
2021-05-04 00:34:54 +03:00
Ashley Hauck
7a6806c17b
Add shader image query instructions ( #608 )
...
* Add shader image query instructions
* Normalize spirv-std src paths in test output
* Fix tests on vulkan
2021-04-30 09:07:38 +02:00
XAMPPRocky
538cdd2ea7
Update version and remove usage of or_patterns ( #607 )
2021-04-29 10:55:51 +02:00
XAMPPRocky
a14e3ec110
Release 0.4.0-alpha.6 ( #606 )
...
compiletests@0.4.0-alpha.6
compiletests-deps-helper@0.4.0-alpha.6
compute-shader@0.4.0-alpha.6
example-runner-ash@0.4.0-alpha.6
example-runner-cpu@0.4.0-alpha.6
example-runner-wgpu@0.4.0-alpha.6
mouse-shader@0.4.0-alpha.6
multibuilder@0.4.0-alpha.6
rustc_codegen_spirv@0.4.0-alpha.6
shared@0.4.0-alpha.6
simplest-shader@0.4.0-alpha.6
sky-shader@0.4.0-alpha.6
spirv-builder@0.4.0-alpha.6
spirv-std@0.4.0-alpha.6
spirv-std-macros@0.4.0-alpha.6
spirv-types@0.4.0-alpha.6
Generated by cargo-workspaces
2021-04-29 09:24:21 +02:00
Ashley Hauck
49dd238083
Bump rust-toolchain to nightly-2021-04-25 ( #605 )
...
* Bump rust-toolchain to nightly-2021-04-25
2021-04-28 13:53:33 +00:00
XAMPPRocky
f88ae5b28a
Add Const Generic Image Type ( #359 )
...
* Add parameterized Image type
* nits
* Update crates/spirv-std/src/lib.rs
* Update crates/rustc_codegen_spirv/src/symbols.rs
* Update crates/rustc_codegen_spirv/src/symbols.rs
* Update symbols.rs
2021-04-28 09:47:40 +02:00
Erin Power
18ba6f322d
Add support for SPV_KHR_ray_query
2021-04-27 16:07:46 +03:00
Ashley Hauck
ec131ca95c
CI check that docs are able to be built without warnings ( #601 )
...
* CI check that docs are able to be built without warnings
2021-04-23 08:12:02 +00:00
Markus Siglreithmaier
3d710e7c4b
Fix semantics type for control barriers to support multiple flags ( #598 )
...
* Fix semantics type for control barriers to support multiple flags
* spirv-std: convert memory semantics to bitflag
* Update crates/spirv-std/src/arch/barrier.rs
Co-authored-by: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com>
Co-authored-by: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com>
2021-04-22 11:17:02 +02:00
XAMPPRocky
a42a9f20e1
Add support for SPV_KHR_ray_tracing ( #563 )
...
* Add support for SPV_KHR_ray_tracing
* Update spirv_type_constraints.rs
* Update spirv_type_constraints.rs
* Update spirv_type_constraints.rs
2021-04-16 16:59:11 +03:00
XAMPPRocky
4824d205ba
Release 0.4.0-alpha.5 ( #590 )
...
compiletests@0.4.0-alpha.5
compiletests-deps-helper@0.4.0-alpha.5
compute-shader@0.4.0-alpha.5
example-runner-ash@0.4.0-alpha.5
example-runner-cpu@0.4.0-alpha.5
example-runner-wgpu@0.4.0-alpha.5
mouse-shader@0.4.0-alpha.5
multibuilder@0.4.0-alpha.5
rustc_codegen_spirv@0.4.0-alpha.5
shared@0.4.0-alpha.5
simplest-shader@0.4.0-alpha.5
sky-shader@0.4.0-alpha.5
spirv-builder@0.4.0-alpha.5
spirv-std@0.4.0-alpha.5
spirv-std-macros@0.4.0-alpha.5
Generated by cargo-workspaces
2021-04-12 10:27:55 +02:00
XAMPPRocky
4163ce68cf
Remove memcmp from spirv-std ( #583 )
2021-04-09 13:52:37 +02: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
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
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
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
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
XAMPPRocky
3da44847ec
Make derivative arch functions public
2021-03-26 13:13:58 +01:00
Erin Power
1e7eb64f17
Release 0.4.0-alpha.1
...
compute-shader@0.4.0-alpha.1
rustc_codegen_spirv@0.4.0-alpha.1
spirv-builder@0.4.0-alpha.1
spirv-std@0.4.0-alpha.1
spirv-std-macros@0.4.0-alpha.1
Generated by cargo-workspaces
2021-03-25 16:16:25 +01:00
Erin Power
dea67c686c
Move min-const-generics features out of const-generics flag
2021-03-25 10:34:01 +02:00
Eduard-Mihai Burtescu
e04e1f53fc
Replace spirv_std::storage_class::X<T> with &T/&mut T and optionally #[spirv(x)].
2021-03-23 09:30:24 +01:00
XAMPPRocky
e7d68f7435
Add primitive set of arch instructions ( #520 )
2021-03-22 10:55:18 +00:00
Ashley Hauck
89dc8c65aa
Add cubemaps ( #521 )
2021-03-22 11:35:42 +01:00
Jesse
9fb930b8f1
feat: add OpImageSampleExplicitLod to spirv-std ( #498 )
2021-03-19 07:24:20 +01:00
XAMPPRocky
6b33db07e6
Update to 0.4.0-alpha.0 ( #497 )
...
* Release 0.4.0-alpha.0
compute-shader@0.4.0-alpha.0
rustc_codegen_spirv@0.4.0-alpha.0
spirv-builder@0.4.0-alpha.0
spirv-std@0.4.0-alpha.0
spirv-std-macros@0.4.0-alpha.0
Generated by cargo-workspaces
* Update Cargo.lock, remove unused one
* Update lockfile
* update lockfile
2021-03-16 15:14:53 +01:00
XAMPPRocky
1d365490a5
Add arithmetic instructions to arch ( #446 )
2021-03-16 09:42:18 +00:00
XAMPPRocky
6e8453f386
Decouple glam from spirv-std ( #476 )
2021-03-16 09:59:08 +01:00
Johan Andersson
a173208d80
Update to Embark lints v0.3 ( #482 )
...
Co-Authored-By: Johan Andersson <repi@repi.se>
Co-authored-by: Erin Power <erin.power@embark-studios.com>
2021-03-12 12:35:37 +00:00
Jesse
556e12f4fc
refactor: Slight refactor of textures.rs asm functions for consistency ( #488 )
2021-03-11 07:37:22 +01:00
Jesse
c53c351987
feat: add image fetch ( #480 )
2021-03-10 08:17:07 +00:00
Johan Andersson
a990ed5696
Use Embark standard lints v0.2 ( #475 )
2021-03-08 10:37:43 +01:00