maratik123
f911996534
Code cleanup ( #2497 )
...
* refactoring
* fmt
* Update vulkano/src/command_buffer/commands/query.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/buffer/subbuffer.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/buffer/mod.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/swapchain/mod.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/sync/fence.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/sync/semaphore.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/sync/pipeline.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/descriptor_set/mod.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/image/mod.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* review fixes
* post merge fixes
* fmt
---------
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2024-03-13 17:37:28 +01:00
Rua
6a5aed496e
Rename Features
, Properties
to DeviceFeatures
, DeviceProperties
( #2481 )
...
* Rename `Features`, `Properties` to `DeviceFeatures`, `DeviceProperties`
* Merge
2024-03-04 17:24:29 +01:00
marc0246
1b91d4e5a9
Fix VulkanoWindowRenderer::acquire
taking &Vec<T>
as well
2024-02-21 09:24:50 +01:00
marc0246
89cf5402d0
Fix VulkanoWindowRenderer::swapchain_image_views
return type
...
I have only noticed this as I was writing the changelog.
@coolcatcoder for future reference, `&Vec<T>` is an anti-pattern. There's nothing more you can do with it than with `&[T]` (because the reference is immutable) and it means that we can't use a different underlying buffer without a breaking change.
2024-02-21 09:19:09 +01:00
Katt
9a35fb0221
Make image_index and final_views accessible, and add new example. ( #2473 )
...
* Make image_index and final_views accessible, and new example.
The first 2 changes should make creating frame buffers easier.
The new example should make it easier to learn vulkano-util.
* Remove unnecessary imports, and run clippy.
* Run fmt.
* .acquire() no longer returns image_index
* rename final_views() to swapchain_image_views()
The name change makes it more consistent with swapchain_image_view().
Personally I don't understand why the field name is final_views, yet we externally in function names refer to it as swapchain image views and such like.
* Fractal example no longer creates framebuffer every frame.
* Game of life example no longer creates framebuffer every frame.
(Also removed a piece of code I had commented out, but had forgotten to remove from the fractal example.)
* Rename if_recreate_swapchain to on_recreate_swapchain and update acquire() documentation. to on_recreate_swapchain
* on_recreate_swapchain is now impl FnOnce instead of generics based FnMut
Thanks marc0246!
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Replace empty comment with an actual comment.
---------
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2024-02-21 09:08:50 +01:00
Okko Hakola
c90c6e87c4
Remove windows specific dnd disable ( #2474 )
2024-02-20 13:23:30 +01:00
Rua
8673aea5d0
Fix Rust 1.76 clippy warnings ( #2462 )
...
* Fix Rust 1.76 clippy warnings
* Fix doctest error
2024-02-15 16:39:02 +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
34736a675a
Remove license notices from source files ( #2401 )
...
* Remove license notices from source files
* Add license notices for rangemap
2023-11-08 13:49:49 +01:00
marc0246
1e9128795f
Workspace dependencies ( #2381 )
...
* Use workspace dependencies
* Update CI workflow to account for the two workspaces
* Make the tables in the root workspace a bit nicer to look at
* Use workspace package version
* Remove workspace package version
* Make winit a workspace dependency as well
2023-10-29 22:42:00 -05:00
marc0246
c560d765f0
Fix vulkano-util depending on vulkano-win ( #2382 )
2023-10-29 18:28:56 -05:00
marc0246
1964ae7922
Fix Cargo manifests ( #2377 )
...
* Fix Cargo manifests
* Oopsie
2023-10-29 18:54:11 +01:00
marc0246
77468ebab0
Fix licenses ( #2378 )
2023-10-29 18:05:10 +01:00
Rua
755dcbc6e2
Release Vulkano 0.34.0 ( #2367 )
2023-10-24 18:54:46 +02:00
Rua
fb828a6db2
Clippy fixes for Rust 1.73.0 ( #2347 )
...
* Clippy fixes for Rust 1.73.0
* Doc fixes too
2023-10-07 14:13:17 +02:00
marc0246
5578bf30da
Memory (sub)allocation API 2.0 ( #2316 )
...
* Excommunicate `PoolAllocator`
* Switch to manual deallocation
* Move `ResourceMemory` away from the `suballocator` module
* Remove `SuballocatorError::BlockSizeExceeded`
* Fix examples
* Fix atom size
* Address safety TODOs
* Nice English you got there bro
2023-09-03 13:09:07 +02:00
Rua
b3dbca4001
Rust 1.72 fixes ( #2302 )
2023-08-25 03:01:45 +02:00
Kevin Ji
4133a3bf63
Use OR
operator in Cargo.toml license
field ( #2293 )
...
The use of `/` is deprecated, per the Cargo reference:
https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields
2023-08-18 13:36:49 +02:00
Rua
5c67f85c99
Improve debug messenger, remove second Instance
constructor ( #2275 )
...
* Improve debug messenger, remove second `Instance` constructor
* #2242
* Doctest fix
* Take Arc out
* DeviceOwnedVulkanObject
* Update vulkano/src/device/mod.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/instance/debug.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Fixes
---------
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-08-05 20:57:37 +02:00
Rua
b7c79acb77
ValidationError-ify futures ( #2271 )
...
* ValidationError-ify sync primitives
* Fix Windows error
* Return timeouts as errors instead
* Simplify a bit
* ValidationError-ify futures
* Update vulkano/src/sync/future/semaphore_signal.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/swapchain/acquire_present.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/src/sync/future/fence_signal.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
---------
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-08-04 22:02:45 +02:00
Rua
0f5e298f29
Add Format::UNDEFINED
( #2262 )
...
* Add `Format::UNDEFINED`
* Use `iter::once`
2023-07-14 16:44:34 +02:00
Rua
3a5b8a4432
ValidationError-ify images and image views, fix DRM format modifiers ( #2252 )
...
* ValidationError-ify images and image views, fix DRM format modifiers
* Update examples/src/bin/triangle-v1_3.rs
Co-authored-by: Austin Johnson <me@austinj.me>
* Update examples/src/bin/triangle.rs
Co-authored-by: Austin Johnson <me@austinj.me>
---------
Co-authored-by: Austin Johnson <me@austinj.me>
2023-07-06 03:52:11 -05:00
marc0246
7a8fec9e75
Unify all image types ( #2247 )
...
* Move `Image` to the `image` module
* Unify all image types
* Fix tests
* Fix examples
* Oopsie
* Don't re-export `ImageViewType`
* Fix docs
* Fix gl-interop example
2023-07-03 22:37:29 +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
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
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
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
096d3bc660
Publish vulkano-macros ( #2175 )
...
* Publish vulkano-macros
* Document `vulkano-macros`
* Make macros dependency optional
* Document `macros` feature
* Fix outdated docs
* Derp
2023-04-02 23:33:01 -05:00
Rua
1f31e85c5e
Release Vulkano 0.33.0 ( #2169 )
...
* Release Vulkano 0.33.0
* Update changelog for recent changes
* Derp
2023-04-02 18:38:06 -05:00
Rua
41ded32156
Update dependencies, clippy warnings ( #2142 )
...
* Update dependencies, clippy warnings
* Remove allowed clippy lint that no longer triggers as of Rust 1.67.1
2023-03-05 20:12:17 -06:00
Rua
6eb526322b
Fix clippy warnings from Rust 1.66 ( #2105 )
2022-12-18 10:23:40 -06:00
Okko Hakola
6de6050764
Remove allocator from window renderer inputs ( #2085 )
2022-11-12 16:10:40 +01:00
Rua
a984a925c4
Use actual integer bitflags for Vulkan bitflag types ( #2073 )
...
* Use actual integer bitflags for Vulkan bitflag types
* Fix doc tests
* Fix Fence and Semaphore on Win32 and Fuchsia
* Add macro for bitflags that have a corresponding enum
* Fix bug
2022-11-05 00:02:28 -05:00
Rua
1f1c2322b6
Release Vulkano 0.32.0 ( #2061 )
...
* Release Vulkano 0.32.0
* Update CHANGELOG.md
Co-authored-by: Austin Johnson <me@austinj.me>
2022-10-31 03:09:41 -05:00
marc0246
34b709547f
Memory allocation revamp ( #1997 )
...
* Add suballocators
* Add tests
* Retroactively abort `PoolAllocatorCreateInfo`
* Use const generic for `PoolAllocator`'s block size
* Move `new` and `try_into_region` to `Suballocator`
* Move `allocate_unchecked` to `Suballocator`
* Fix constructor visibility
* Move `free_size` to `Suballocator`
* Small fixes
* Merge `BumpAllocator` and `SyncBumpAllocator`
* Restrict `AllocParent::None` to tests
* Rewording
* Add dedicated allocations
* Add `Suballocator::cleanup`
* Make `free_size`s lock-free
* Add `Suballocator::largest_free_chunk`
* Add `ArrayVec`
* Remove useless `unsafe`
* Add `MemoryAllocator`
* Add `GenericMemoryAllocator`
* Small fixes
* Retroactively abort `largest_free_chunk`
* Small docs adjustments
* Rearrange
* Add `MemoryAlloc::mapped_ptr`
* Fix oopsie
* Add support for non-coherent mapped memory
* Add `DeviceOwned` subtrait to `Suballocator`
* Move granularities to suballocators, fix tests
* Add cache control
* Fix oopsie where alignment of 0 is possible
* Store `Arc<DeviceMemory>` in suballocators
* Add `MemoryAllocator::create_{buffer, image}`
* Remove `MemoryPool`
* Fix examples
* Remove `MemoryAlloc::{memory, memory_type_index}`
* Minor improvement to `AllocationCreationError`
* Add some example docs
* Add support for external memory
* Swicheroo
* Small fix
* Shorten sm names, cache atom size in suballocators
* Add config for allocation type to generic allocatr
* Engrish
* Fix a big oopsie
* Spliteroo
* Inglisch
2022-10-26 16:25:01 +02:00
Rua
cdab36a322
Remove type parameter from Surface
( #2036 )
2022-10-20 02:26:34 -05:00
marc0246
b8d7cc3241
The deed ( #2016 )
2022-10-04 10:50:58 +02:00
marc0246
1c2d195dab
Improvements to caches and switch to ahash
( #2019 )
...
* Add `OnceCache`
* Switch to `ahash`
2022-10-04 10:04:52 +02:00
Rua
f78e06fc6e
#2007 fixes ( #2008 )
2022-10-01 21:19:25 -05:00
Rua
c085dd8d9f
Queue operations refactoring ( #1995 )
2022-09-24 01:45:06 -05:00
Austin Johnson
137fb9f24b
Release 0.31 ( #1990 )
2022-09-18 05:46:53 -05:00
Austin Johnson
8e8482016a
Impl Present Wait Feature ( #1965 )
...
* impl present_wait feature
* handle timeout case
* add missing doc
* document the return type of wait_for_present
* impl check for VUID-04999
* don't enforce gt if present_id is zero
* impl PresentInfoExt
* Remove NonZeroU64 from wait_for_present in favor of an error
* fix gl-interop example
* fix docs and fmt
* PresentInfoExt -> PresentInfo, Added swapchain + index to info
* fix doc test, didn't save file...
* fix gl-interop
* Remove Whitespace
2022-09-17 09:38:32 +02:00
Rua
4abc27b9e5
Make PhysicalDevice
an independent object ( #1967 )
...
* Better validation and errors
* Small fix
* Make `PhysicalDevice` an independent object
Co-authored-by: Austin Johnson <me@austinj.work>
2022-09-10 01:00:08 -05:00
Rua
2705984c77
Macrofy all Vulkan bitflag and enum types, check for device support ( #1964 )
2022-09-05 15:16:40 -05:00
Rua
f0e6e4c6b7
Fix or allow all Clippy errors, re-enable dead code and unused variable warnings ( #1953 )
2022-08-12 05:18:35 -05:00
Okko Hakola
062b5e2f96
Ios fix ( #1950 )
...
* Fix iOS, use similar approach for metal layer as wgpu
* Use correct return type
* Handle ios resizing
* Add changelog notes
* Fix typo
* Update raw-window-handle
* Ensure mac changes correspond master version
2022-08-11 09:49:29 +02:00
Okko Hakola
ac32c625cd
Better defaults for vulkano config ( #1942 )
...
* Better defaults for vulkano config
* Update changelog
2022-08-06 14:08:51 +02:00
Rua
14f14f76ee
Update winit to 0.27 ( #1933 )
...
* Update winit to 0.27
* Fix windows
* Better fix?
2022-07-30 01:58:44 -05:00
Rua
6a755cd2f3
Add VulkanLibrary
as first initialization step before Instance
( #1932 )
...
* Add `VulkanLibrary` as first initialization step before `Instance`
* Fix MacOS error
* Fix Vulkano-utils
2022-07-30 01:53:52 -05:00
Austin Johnson
6a8ee8d75f
Release 0.30 ( #1929 )
2022-07-20 03:50:41 -05:00