Commit Graph

3523 Commits

Author SHA1 Message Date
Rua
c1c188b00c
Not all of it is implemented 2023-06-26 11:34:45 +02:00
marc0246
0b9bca6646
#2236 changelog 2023-06-26 11:20:30 +02:00
Rua
da09477d01
ValidationError-ify Surface and Swapchain (#2236)
* Add `RequiresAllOf`, automatically enable required extensions and features

* Add more missing backticks and backslashes to error messages

* Use updated VUIDs that require `acceleration_structure`

* ValidationError-ify `Surface` and `Swapchain`

* Update vulkano/src/lib.rs

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

* Update vulkano/src/lib.rs

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

* Don't draw if the window has zero size

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-06-26 11:17:53 +02:00
marc0246
2d6ff1061c
#2234 changelog 2023-06-25 22:10:19 +02:00
Rua
69677346d2
ValidationError-ify GraphicsPipeline (#2234)
* Add `RequiresAllOf`, automatically enable required extensions and features

* Add more missing backticks and backslashes to error messages

* Use updated VUIDs that require `acceleration_structure`

* ValidationError-ify `GraphicsPipeline`

* Update vulkano/src/lib.rs

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

* 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-06-25 20:08:27 +02:00
Rua
862e73bbc3
Add missing extensions as of Vulkan 1.3.255 2023-06-25 17:40:44 +02:00
Rua
6298e1b961
#2233 changelog 2023-06-25 17:16:20 +02:00
Rua
0427482ca6
Add RequiresAllOf, automatically enable required extensions and features (#2233)
* Add `RequiresAllOf`, automatically enable required extensions and features

* Add more missing backticks and backslashes to error messages

* Use updated VUIDs that require `acceleration_structure`

* Fix `check_requirements`

* Cooperation go brr

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-06-25 17:01:14 +02:00
marc0246
223beb97e9
#2225 changelog 2023-06-17 22:44:31 +02:00
Rua
f10c594182
Add support for inline uniform blocks (#2225)
* Add support for inline uniform blocks

* Make this match exhaustive so it triggers if new descriptor types are added in future

* Return RuntimeError from pool allocation

* Doc improvement

* Doc fix

* Apply fixes
2023-06-17 20:44:04 +00:00
marc0246
921d0a5887
#2227 changelog 2023-06-17 22:21:28 +02:00
Rua
9fd6e0ff45
Add support for khr_device_group_creation (#2227)
* Add support for `khr_device_group_creation`

* Fix vulkano-utils

* Apply fixes
2023-06-17 20:18:48 +00:00
Rua
c5aa3f36b2
Prevent panic on overflow in validate_push_constants (#2232) 2023-06-17 19:13:11 +00:00
marc0246
508005c974
#2223 changelog 2023-06-17 21:11:45 +02:00
Rua
45f69c17a2
Add support for two render pass extensions (#2223)
* Reorganise render pass objects, add support for some extensions

* Handle stencil initial/final layout in the macro

* This was promoted to 1.2, not 1.1

* Doctests again...

* Missing docs

* Fix bad validation

* Convert Framebuffer to ValidationError while we're at it

* FramebufferCreateFlags

* Make render pass creation more like Vulkan again

* TODO for depth_resolve_mode and stencil_resolve_mode in the macro

* Depth/stencil resolve modes

* Missed validation

* Forgot some testing code...

* msaa-renderpass docs

* Doc fixes

* Add missing backslashes
2023-06-17 19:01:50 +00:00
Codotaku
3fdf75a727
Add fallback library names (#2230) 2023-06-17 13:25:24 +02:00
marc0246
638f72279b
#2224 changelog 2023-06-09 10:40:07 +02:00
Rua
73fb509867
Add TessellationDomainOrigin (#2224)
* Add `TessellationDomainOrigin`

* Docs
2023-06-09 10:39:42 +02:00
marc0246
aa82557c11
Fix UB in Subbuffer::reinterpret (#2228) 2023-06-08 18:42:16 +02:00
Rua
8b6d25c43a
@2220 changelog 2023-06-08 11:11:01 +02:00
marc0246
eb97cf2808
Fix UB in push_constants (#2220) 2023-06-08 11:10:25 +02:00
marc0246
1f50703428
More #2219 additions 2023-06-05 07:29:18 +02:00
Rua
077a61cb48
image robustness needs no additional support from Vulkano 2023-06-04 16:35:57 +02:00
Rua
5428fb9295
These are also already done 2023-06-04 15:44:28 +02:00
Rua
860266a909
A few more missing things from Vulkan 1.0 2023-06-04 14:28:18 +02:00
Rua
434a0f5fad
PipelineCreateFlags was added recently 2023-06-04 14:22:28 +02:00
Arnoldas Rauba
409b620217
Fixed some examples freezing on fullscreen mode on MacOS for #2208 (#2221)
* Updated  #2208

This commit solves the problem of freezing when going fullscreen for MacOS.
It was caused because winit may behave unexpectedly when using
run_return. Winit crate generally discourages the use of that
(see: <https://docs.rs/winit/latest/winit/platform/run_return/trait.EventLoopExtRunReturn.html#tymethod.run_return>).

NOTE. This commit only solves the problem for `interactive_fractal`
binary, but not the `multi_window_game_of_life` binary.

* Some display servers (like X.org) are not redrawing for every frame.

* Fixed the same bug for  example binary.

* Remove ControlFlow::Poll (it is the default anyway) in interactive_fractal

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

* Remove ControlFlow::Poll (it is the default anyway) in multi_window_game_of_life

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

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-06-04 09:15:21 +02:00
Rua
1e8985b68f
#2219 changelog 2023-06-03 15:03:47 +02:00
marc0246
52681d52dd
#2219 changelog 2023-06-03 14:57:43 +02:00
Rua
3e7ac8e0d4
Add support for descriptor set copies and other things (#2219)
* Add support for descriptor set copies and other things

* Typo

* Errors

* Doctest fix

* Add missing non_exhaustive
2023-06-03 14:56:27 +02:00
Gábor Gyebnár
cd9f081e3a
Fixes all examples to use at least two swapchain buffers (#2218)
* Fixes all examples to use at least two swapchain buffers.

* Fix build error
2023-06-02 22:01:38 +02:00
Rua
d8e504b015
#2213 additions 2023-06-02 21:55:56 +02:00
marc0246
3196ec2985
#2213 changelog 2023-06-02 21:50:24 +02:00
Rua
7ccba1714b
Add support for acceleration structures and ray queries (#2213)
* Add support for acceleration structures and ray queries

* Add support for acceleration structures and ray queries

* Add add_context helper method

* Remove Option from ValidationError::requires_one_of

* Update vulkano/src/command_buffer/commands/bind_push.rs

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

* Use id counter, small clippy fixes elsewhere

* Use byte buffers for things with strides

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-06-02 21:44:19 +02:00
Rua
1e4a15bb48
bind_memory2 is already supported 2023-05-31 18:02:14 +02:00
Rua
c44ef4dfce
#2205 changelog 2023-05-31 17:59:39 +02:00
marc0246
351988384e
Fix dedicated allocation not getting created even when required (#2215)
* Fix UB

* Remove useless code
2023-05-31 17:59:05 +02:00
Michael Wu
211978c87c
Remove unused StepLite/StepFns traits (#2210)
Nothing seems to use these traits.

Comments mention RangeInclusiveMap, but I can't find it.
2023-05-28 12:27:33 +02:00
Rua
67d3a901b6
Replace PipelineMemoryAccess with PipelineStageAccess (#2212)
* Replace `PipelineMemoryAccess` with `PipelineStageAccess`

* Rename `is_2` to something better

* Missed rename
2023-05-28 12:26:21 +02:00
Rua
c14da2afc4
Remove new command buffer (#2211)
* Remove new command buffer

* Re-add iter_descriptor_stages

* 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-05-19 15:35:23 +02:00
marc0246
08c245d7c5
Remove vulkano-win dependency from examples (#2209) 2023-05-18 14:07:30 +02:00
marc0246
1bf682dc28
#2207 changelog 2023-05-18 13:06:40 +02:00
Rua
6816292750
Merge SyncCommandBuffer into *AutoCommandBuffer (#2207)
* Merge `SyncCommandBuffer` into `*AutoCommandBuffer`

* Commands take containers directly instead of iterators

* Use allocator as the type parameter for built command buffers

* Don't make `UnsafeCommandBuffer` keep objects alive

* Re-add impl for Arc

* Fixes

* Doc fix
2023-05-18 13:03:37 +02:00
Rua
7b8225f364
Fix warnings from earlier PRs (#2206) 2023-05-12 20:26:49 +02:00
marc0246
56e6871da0
Add async update example (#2202)
* Add async update example

* Add generation

* Minor rearrange

* One more note
2023-05-12 09:53:36 +02:00
Rua
33fe0170f5
#2204 changelog 2023-05-12 09:53:14 +02:00
marc0246
77fa2bbfcc
Add Surface::from_window[_ref], deprecate vulkano-win (#2204)
* Add `Surface::from_window[_ref]`

* Add `Surface::required_extensions`

* Deprecate vulkano-win

* Fix SPIR-V word alignment in tests

* Fix oopsie

* Remove pointer transmute
2023-05-12 09:52:20 +02:00
marc0246
535ae1abec
Improve error formatting (#2205)
* Add custom `Debug` implementations

* Minor improvements to `Display` implementations
2023-05-12 09:51:55 +02:00
marc0246
11ce974c0a
Fix attributions 2023-05-07 15:05:24 +02:00
Rua
2b83cf3155
#2201 changelog 2023-05-06 09:44:03 +02:00