Commit Graph

3928 Commits

Author SHA1 Message Date
Yousif
f27a0431ca
Fix link to vulkano book in README (#2459) 2024-01-30 11:07:19 +01:00
marc0246
94f50f18bd
Use hard-coded vertices in eligible examples (#2454)
* Use hard-coded vertices in eligible examples

* Remove outdated todos
2024-01-16 19:30:14 +01:00
marc0246
b202cb8813
Add lockfile entry that was missed in #2451 2024-01-15 04:17:50 +01:00
Rua
fde00fa9ad
#2452 changelog 2024-01-11 17:25:41 +01:00
daigennki
90c104c9f1
Fix wrong comparison in push constant size validation check (#2452)
* Fix wrong comparison in push constant size validation check

* Fix incorrectly placed backtick in validation error problem

Oops.
2024-01-11 17:24:53 +01:00
Martin Charles
9b6e307569
Add Minimal Offscreen Rendering Example (#2451)
* add offscreen example

* cleanup example

* more cleanup

* typo

* fix clippy

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* edits

* i'm loosing my marbles

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* formatting

* Update examples/offscreen/Cargo.toml

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* cargo fmt

* more correct description

* import

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update examples/offscreen/main.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2024-01-11 01:37:17 +01:00
marc0246
fd352ec0f1
Cache dependencies in CI (#2449)
* Clean up CI config

* Cache Cargo home in CI

* Add `Cargo.lock`

* Use rust-cache

* Don't fail fast

* Disable the cache action for self-hosted runners
2024-01-10 02:26:35 -06:00
Hadrien G
e194406ae7
vulkan-utils -> vulkan-tools package naming fix (#2448)
There is no `vulkan-utils` package in current Ubuntu repos. But there used to be one in ubuntu 20.04, which was a compatibility alias for the `vulkan-tools` package that is still around. So I guess you meant `vulkan-tools`?
2024-01-06 19:31:52 +01:00
Rua
b64846e7a4
Minor reorganization of shader validation code (#2445)
* Minor reorganization of shader validation code

* Track call tree of SPIR-V functions

* Restore fixme
2024-01-05 14:10:50 +01:00
marc0246
eda954a670
Format code in doc comment code blocks (#2447)
* Format code in doc comment code blocks

* `cargo +nightly fmt`

* Finishing touches
2024-01-05 13:47:22 +01:00
marc0246
00b65b1299
Enforce a consistent comment width (#2444)
* Enforce comment width

* `cargo +nightly fmt`

* Finishing touches
2024-01-05 02:14:49 -06:00
marc0246
e7f37adfa9
Run clippy in CI (#2443)
* Run clippy in CI

* Fix clippy warnings in build output

* Update PR template
2024-01-05 02:08:36 -06:00
marc0246
e243c2699d
#2404 additions 2024-01-03 15:15:00 +01:00
marc0246
cf31f4e059
Check formatting in CI (#2442)
* Check formatting in CI

* Fix existing fomatting inconsistencies

* Update PR template
2024-01-03 02:45:14 -06:00
Firestar99
7788847b04
Mesh shading example (#2437)
* mesh-shader-triangle example: copied from instancing example

* mesh-shader-triangle example: move shaders to separate files

* mesh-shader example: rename example

* mesh-shader example: implement mesh shader generating geometry

* mesh-shader example: fix instance data indexing partially, still has struct alignment issues

* mesh-shader example: fixed instance buffer alignment issues

* remove unnecessary things

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* mesh-shader example: cargo fmt

* mesh-shader example: rename shaders to end in .glsl

* mesh-shader example: added color out variable, docs

* mesh-shader example: rename shader again

* mesh-shader example: reformat shader code

* mesh-shader example: cargo fmt with nightly

---------

Co-authored-by: Firestar99 <4696087-firestar99@users.noreply.gitlab.com>
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2024-01-02 14:46:27 +01:00
Rua
ff1c71fa33
Add missing tickmarks (#2440) 2024-01-02 14:09:24 +01:00
marc0246
779d2dc485
#2438 changelog 2024-01-02 14:08:51 +01:00
Rua
9e82527698
Make QueryType a regular Vulkan enum (#2438)
* Make `QueryType` a regular Vulkan enum

* More consistency with Vulkan
2024-01-02 14:08:02 +01:00
ilyas taouaou
d08d9f587d
Update Surface documentation (#2412)
* Update Surface documentation

* Update Surface documentation

* Update vulkano/src/lib.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-12-28 23:47:45 +01:00
Rua
bef7b94aef
Fix warnings for Rust 1.75 (#2436) 2023-12-28 20:32:13 +01:00
Rua
2bbd4eff69
More robust extension and feature dependency checks (#2434) 2023-12-28 20:30:51 +01:00
marc0246
ac67f927bd
#2433 changelog 2023-12-28 19:45:39 +01:00
Rua
655ca5e6c9
Add support for the ext_mesh_shader extension (#2433)
* Add support for the `ext_mesh_shader` extension

* Helper function for queries

* Documentation update

* Add mesh primitives generated query

* Derp

* Support in vulkano-shaders too

* More doc fixes

* Better docs, explicitly saying when the values must be `Some` or `None`.

* Update vulkano/src/pipeline/graphics/mod.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-12-28 19:44:22 +01:00
marc0246
b2bbe34896
#2432 changelog 2023-12-25 05:36:55 +01:00
Rua
218ad3afcd
Add support for the khr_draw_indirect_count extension (#2432) 2023-12-25 05:35:48 +01:00
CoDeus
7c66eb8b43
Add Vera project (#2431) 2023-12-25 05:32:18 +01:00
marc0246
efd49b1a7e
#2429 changelog 2023-12-25 04:03:13 +01:00
Rua
289ec102e0
Document shader safety requirements, make draw/dispatch unsafe (#2429)
* Document shader safety requirements, make draw/dispatch unsafe

* Extra docs

* Doctests

* Max index value

* Small change

* Update vulkano/src/command_buffer/mod.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update vulkano/src/command_buffer/mod.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-12-25 04:01:16 +01:00
marc0246
94a8fb9a43
Changelog oopsie 2023-12-20 13:09:24 +01:00
Rua
a4d889f6e1
#2425 changelog 2023-12-20 13:06:29 +01:00
marc0246
00bb62171f
Merge PrimaryAutoCommandBuffer and SecondaryAutoCommandBuffer into CommandBuffer (#2425)
* Merge `PrimaryAutoCommandBuffer` and `SecondaryAutoCommandBuffer`

* Fix docs

* Fix examples

* Move command buffer creation validation to `RawRecordingCommandBuffer`

* Fix `RawRecordingCommandBuffer::end` being safe to call

* Remove unsafe block inside `RawRecordingCommandBuffer::end`
2023-12-20 13:04:01 +01:00
marc0246
648f3ce715
Improve clarity of MemoryTypeFilter docs (#2428)
* Make the combination disclaimers **impossible** to miss

* Add headings to the examples for improved visibility

* Update vulkano/src/memory/allocator/mod.rs

Co-authored-by: Rua <ruawhitepaw@gmail.com>

---------

Co-authored-by: Rua <ruawhitepaw@gmail.com>
2023-12-20 11:50:57 +01:00
marc0246
6afe4792df
#2413 changelog 2023-12-18 08:11:07 +01:00
Yuxuan Shui
22276cdb8a
Support creating buffers and images that are not backed by vulkano-managed memory (#2413)
* Support creating images that are not backed by vulkano managed memory

* Support creating buffers that are not backed by vulkano managed memory

* Add a way to create a RawImage that doesn't own the inner image

* Add a way to create a RawBuffer that doesn't own the inner buffer

* Apply suggestions from code review

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* fixup! Support creating images that are not backed by vulkano managed memory

* fixup! Support creating buffers that are not backed by vulkano managed memory

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-12-18 08:09:50 +01:00
marc0246
b8a9e94a8e
Changelog was borked 2023-12-14 10:29:50 +01:00
Adrien Vasseur
8608063a04
Fix StandardCommandBufferAllocator deallocation in release mode (#2424) 2023-12-13 13:17:32 +01:00
Rua
1f99160067
#2422 changelog 2023-12-10 19:43:51 +01:00
marc0246
1b0903d378
Allow executing raw secondary command buffers (#2422) 2023-12-10 19:43:19 +01:00
Rua
dd2918f12e
#2421 changelog 2023-12-09 12:27:14 +01:00
marc0246
cee21d3f05
Rename command buffer types (#2421)
* Rename `UnsafeCommandBuffer[Builder]`

* Rename `AutoCommandBufferBuilder`

* `finish` -> `end`

* Clarify docs

* `CommandRecorder` -> `RecordingCommandBuffer`
2023-12-09 12:24:52 +01:00
marc0246
323aa140d5
#2420 changelog 2023-12-07 18:14:03 +01:00
Rua
fa15e53820
Validate the fragment output against color blend state (#2420)
* Validate the fragment output against color blend state

* Remove old methods from render/subpass that are no longer needed

* Better fix

* Update vulkano/src/macros.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* Update vulkano/src/pipeline/graphics/mod.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-12-07 18:13:08 +01:00
Rua
f1a03abc7a
#2419 changelog 2023-12-06 17:24:12 +01:00
marc0246
4cd3b74f14
Remove the command buffer traits (#2419)
* Remove command buffer traits

* Fix docs

* Fix examples
2023-12-06 17:23:24 +01:00
marc0246
3fe821a754
#2418 changelog 2023-12-01 22:50:10 +01:00
Rua
c70876b3b9
Properly validate shader interfaces between stages (#2418)
* Properly validate shader interfaces between stages

* Update vulkano/src/pipeline/shader.rs

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-12-01 22:49:33 +01:00
marc0246
5c98e5290a
#2417 changelog 2023-12-01 18:11:02 +01:00
Rua
80e4afe073
Improve validation for vertex input, add dynamic state (#2417) 2023-12-01 18:10:13 +01:00
Rua
a17d8f5cb5
Some shader parse refactoring and additions (#2414) 2023-12-01 13:16:21 +01:00
Rua
795f02217a
Fix bug introduced by #2410 (#2411)
* Fix bug introduced by #2410

* Doc fix
2023-11-17 17:14:33 +01:00