Commit Graph

3925 Commits

Author SHA1 Message Date
marc0246
9c0082e048
Fix UB in AllocationHandle::as_index (#2596) 2024-10-30 16:20:08 +01:00
Rua
a1307b6ef8
Minimise unsafe block size, in library (#2592)
* Minimise unsafe block size, in library

* Missed one
2024-10-29 19:39:08 +01:00
Rua
3e4ed4831d
Disable validate_global_variables check for now (#2593) 2024-10-28 00:53:05 +01:00
Rua
2df8003408
#2423 changelog 2024-10-23 16:09:01 +02:00
marc0246
dac6871d97
Allow binding raw descriptor sets (#2423) 2024-10-23 16:07:57 +02:00
Rua
6da1f96c73
Minimise unsafe block size, in examples (#2591) 2024-10-23 12:07:00 +02:00
marc0246
54dafb73bf
Ignore vk.xml and spirv.core.grammar.json from editor search results (#2590) 2024-10-22 17:17:06 +02:00
marc0246
43a298e1ab
Fix the multi-window example handling every key event (#2589) 2024-10-22 17:13:02 +02:00
marc0246
50b3b7a42f
Clean up BufferContents derive macro expansion further (#2588) 2024-10-22 17:12:39 +02:00
marc0246
ba278ac193
Fix panic in BufferContents derive expansion and wrong safety docs (#2587) 2024-10-22 17:10:14 +02:00
Rua
82acabc0fb
#2585 changelog 2024-10-22 13:53:08 +02:00
marc0246
00fd84726c
Replace Suballocator::cleanup with Suballocator::reset (#2585) 2024-10-22 13:52:26 +02:00
Rua
a0d45e7497
#2586 changelog 2024-10-22 13:50:56 +02:00
marc0246
8a365cf905
Add Suballocation[Node]::as[_usize]_range (#2586) 2024-10-22 13:50:13 +02:00
marc0246
303bdfc9e3
Fix outdated command buffer name 2024-10-21 09:33:24 +02:00
Katt
0815e76659
Fix 2583. (#2584)
* fix triangle-util and viewport extent docs

* fmt

* Revert "fmt"

This reverts commit 516b11b3ee.

* Revert "fix triangle-util and viewport extent docs"

This reverts commit b70ebad5ba.

* Marc's better way.
2024-10-20 07:04:12 +02:00
Rua
f73e46fc34
Fix error due to incompatible PR changes 2024-10-19 14:20:55 +02:00
Rua
0e9b73c4e0
#2582 changelog 2024-10-19 14:14:40 +02:00
marc0246
ba8aa2a527
Revert #2421, rename Raw[Recording]CommandBufer again and move them (#2582) 2024-10-19 14:13:15 +02:00
marc0246
1f935e3878
#2574 additions 2024-10-19 07:41:14 +02:00
marc0246
c2fcd16414
#2574 changelog 2024-10-19 07:39:04 +02:00
Lachlan Deakin
6981040486
Add partial support for khr_fragment_shading_rate (#2574)
* support `khr_fragment_shading_rate`

* Add taskgraph `set_fragment_shading_rate`

* Add `set_fragment_shading_rate` validation

* Cleanup `FragmentShadingRateState` validation

* Consolidate fragment_shading_rate validation

* Add docs for `fragment_shading_rate`

* Update vulkano-taskgraph/src/command_buffer/commands/dynamic_state.rs

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

* Format fragment_shading_rate validation messages

* Apply suggestions from code review

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

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2024-10-19 07:34:19 +02:00
Rua
dc619148b0
#2425 changelog 2024-10-18 20:02:45 +02:00
marc0246
5749fef53c
Revert #2425 (#2576) 2024-10-18 20:00:21 +02:00
Firestar99
552caad394
fix vkCmdDrawMeshIndirect() validation using wrong type (#2581) 2024-10-18 11:14:17 +02:00
Lachlan Deakin
123eda1a3b
Fix SPIR-V validation of image ops with offsets (#2575)
* Fix SPIR-V validation of image op functions with offsets

Shader instructions like `textureLodOffset` would always fail validation.

* Rename signed `get_constant_*` functions
2024-10-18 08:16:05 +02:00
marc0246
8c08a85a18
Fix panic when using FullScreenExclusive::ApplicationControlled (#2579) 2024-10-16 19:53:15 +02:00
marc0246
52fc88abef
Fix broken doc links (#2578) 2024-10-16 19:52:35 +02:00
Rua
d62fbf35fe
#2577 changelog 2024-10-16 19:51:42 +02:00
marc0246
d1a9314c28
Fix UB in impl VertexBufferCollection for Vec<Subbuffer<T>> (#2577) 2024-10-16 19:50:54 +02:00
marc0246
1da590f6a1
Remove the gl-interop example from the workspace 2024-10-16 03:28:49 +02:00
marc0246
dc871fb0f7
#2573 changelog 2024-10-15 20:43:11 +02:00
Rua
9c358806be
Add a transfer queue to VulkanoContext (#2573)
* Add a transfer queue to `VulkanoContext`

* Might as well
2024-10-15 20:42:15 +02:00
marc0246
a270468960
Neither regex nor nom are public dependencies... 2024-10-10 16:08:12 +02:00
marc0246
229d69dcbb
#2572 changelog 2024-10-10 16:07:10 +02:00
marc0246
9196fa6eb2
#2571 changelog 2024-10-10 16:03:47 +02:00
marc0246
3189169a38
Fix UB in GenericMemoryAllocator::deallocate (#2572)
* Fix UB in `GenericMemoryAllocator::deallocate`

* Use the slab allocator
2024-10-10 12:21:59 +02:00
marc0246
f6bc05df94
Update dependencies (#2571)
* Update dependencies

* fmt
2024-10-10 12:16:14 +02:00
Rua
9033311653
Use Ash builders for Vulkan struct construction + refactor (#2525)
* Use Ash builders for Vulkan struct construction + refactor

* Use pointer for `from_qnx_screen`

* Workaround for Ash bug

* Fix vulkano-taskgraph

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2024-10-02 15:15:08 +02:00
marc0246
bad11eef71
Task graph [5/10]: the new command buffer (#2567) 2024-09-20 13:30:36 +02:00
Viktor Szépe
d89e5cf608
Mark generated files (#2542) 2024-09-12 10:45:11 +02:00
Rua
4197d15fd0
#2563 changelog 2024-09-12 10:27:27 +02:00
marc0246
f508cab5da
Use the now-stabilized pointer_bytes_offsets instead of what is technically UB and clean up the BufferContents derive macro expansion (#2563)
* Clean up `BufferContents` derive expansion

* Use the now-stabilized `pointer_bytes_offsets` instead of technical UB
2024-09-12 10:27:00 +02:00
marc0246
a0b909fd8b
#2561 changelog 2024-09-11 18:08:00 +02:00
Mads Marquart
0af3fb3cb3
Use raw-window-metal to get a CAMetalLayer from raw-window-handle (#2561)
The way `raw-window-metal` works is by creating a layer, and inserting
that as a sublayer, just like we did on iOS before. The bounds are then
kept in-sync with an observer, ensuring smooth resizing.

This also fixes compilation errors on iOS, and adds preliminary support
for tvOS.

The implementation now solely uses `VK_EXT_metal_surface`, which was
added in 2018, instead of `VK_MVK_ios_surface` / `VK_MVK_macos_surface`,
which are deprecated, and only available a year and a half earlier
anyhow.

Note that apart from the above, there is a slight behavioral change on
macOS: we no longer set `edgeAntialiasingMask` on the layer, as it's not
really required, and allows us to avoid depending on `objc2` directly.
It was introduced without motivation in 40e0b24, so I doubt anyone uses
it, and if they do, they can change it on the layer themselves.
2024-09-11 18:03:54 +02:00
Okko Hakola
db4657d0f0
See if 0 (but not None) timeout would solve crash (#2543)
* See if 0 (but not None) timeout would solve crash

* Try 1 sec timeout
2024-09-11 17:23:13 +02:00
Rua
38b9aff8a8
#2560, #2562 changelog 2024-09-11 17:03:39 +02:00
marc0246
e8ddaef0e3
Add PhysicalDevice::presentation_support (#2562) 2024-09-11 17:02:27 +02:00
marc0246
79c30fd1a8
Task graph [4/10]: compilation (#2560) 2024-09-11 15:59:18 +02:00
marc0246
cd4603b3cc
Fix rust-analyzer choking on &&[u32] in shader macro expansion 2024-08-26 20:34:19 +02:00