Commit Graph

3683 Commits

Author SHA1 Message Date
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
marc0246
3a9c8c814d
Add safe Subbuffer::reinterpret[_ref] methods (#2201)
* Correct naming mistake

* Add `Subbuffer::reinterpret[_ref]`

* Remove old conversion functions

* Some fixes
2023-05-06 09:42:31 +02:00
marc0246
2a0c743514
#2194 changelog 2023-05-05 18:36:13 +02:00
Rua
59e0df378e
Single type for all validation errors (#2194)
* Single type for all validation errors

* Documentation

* Small improvement

* Rename VulkanError to RuntimeError

* Simplify the error type by using an intermediate struct

* 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>

* Update vulkano/src/lib.rs

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

* Better solution

* Revert to original state

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-05-05 18:11:43 +02:00
marc0246
d68001943f
#2197 changelog 2023-05-03 17:20:52 +02:00
Rua
93babbebae
Replace ImageAccess::descriptor_layouts() (#2197)
* Replace `ImageAccess::descriptor_layouts()`

* Add `WriteDescriptorSet` constructors for image views with layout

* Replace `descriptor_layouts` for real

* Small changes

* More improvements
2023-05-03 17:19:28 +02:00
dsentinel
7741e00348
Fix reading from life_out output buffer instead of life_in. (#2198)
Co-authored-by: lloyd <digitalsentinel@gmail.com>
2023-05-03 11:05:28 +02:00
marc0246
25b1d7d942
#2200 changelog 2023-05-03 11:02:07 +02:00
Rua
d24ad058c1
Remove ImageInner (#2200) 2023-05-03 11:01:10 +02:00
marc0246
ea86415584
Remove needless unsafe from Buffer::from_{data,iter} (#2196) 2023-04-29 14:12:42 +02:00
Fighter19
bb7990fd49
Fix wrong detection of seperate stencil usage (#2193)
Fix crash on Vivante GPU (#2192) by properly
determining when to include seperate stencil usage.
2023-04-25 21:06:44 +02:00
marc0246
d4961b192c
#2031 additions 2023-04-24 13:08:13 +02:00
Rua
af94f97d40
#2191 changelog 2023-04-24 11:45:59 +02:00
marc0246
85ff68c8b4
Fix UB in ShaderModule::from_bytes[_with_data] (#2191)
* Fix UB in `ShaderModule::from_bytes[_with_data]`

* Remove magic
2023-04-24 11:45:24 +02:00
marc0246
59ed4d04d4
Fix bytemuck dependency (#2190) 2023-04-24 11:32:12 +02:00
marc0246
c6a6a7fd23
#2187 changelog 2023-04-23 22:37:03 +02:00
Rua
1f9de67bf9
#2187 additions 2023-04-23 22:35:45 +02:00
Rua
8ace1e733c
Add khr_deferred_host_operations (#2187)
* Add `khr_deferred_host_operations`

* impl Error

* -inline

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

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-04-23 22:34:36 +02:00
marc0246
2e414bbf5b
Mildly optimize RangeMap (#2189) 2023-04-23 15:38:56 +02:00
marc0246
617be045e8
#2188 changelog 2023-04-23 09:57:06 +02:00
Rua
1294a8fb43
Fix #2184 (#2188) 2023-04-23 09:55:40 +02:00
marc0246
b1948f5071
#2186 changelog 2023-04-22 20:47:49 +02:00
Rua
b320dd26c3
Add CreateInfo for pipelines, require explicit pipeline layout creation (#2186)
* Add CreateInfo for pipelines, require explicit pipeline layout creation

* Doc fixes

* Add missing unsafe

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

* Add PipelineCreateFlags

* Small fixes

* -inline

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

* -inline

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

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-04-22 20:46:22 +02:00
marc0246
b61adb817b
#2183 changelog 2023-04-19 17:47:32 +02:00
Rua
958a72539e
Require explicit VertexInputState creation (#2183) 2023-04-19 17:45:27 +02:00
marc0246
783b1ba7a4
#2181 changelog 2023-04-18 20:56:25 +02:00
Rua
b7679f8bbb
Rewrite shader and specialization handling in pipelines (#2181)
* Rewrite shader and specialization handling in pipelines

* Make the shader loading in examples a bit cleaner

* Forgot some

* Fix incorrect color blend states in examples

* Nicer fix

* Use mem::discriminant

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

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-04-18 20:53:08 +02:00
marc0246
e29324493b
Oopsie 2023-04-11 11:34:42 +02:00
marc0246
62ff8b45a5
#2180 changelog 2023-04-11 11:32:53 +02:00
Firestar99
9ba796d453
Add root_path_env property to shaders macro (#2180)
* shaders: minor fix that some Vecs were always allocated with capacity of 0

* shaders: add root_path_env property to allow loading shaders generated by a build script

* shaders: Apply root_path_env suggestions from code review

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

* shaders: added root_path_env docs about env vars specified by a build script

---------

Co-authored-by: Firestar99 <4696087-firestar99@users.noreply.gitlab.com>
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-04-11 11:28:45 +02:00
marc0246
8297cc863f
Fix changelog 2023-04-06 06:31:09 +02:00
marc0246
763555b16e
Clarify SubbufferAllocator docs (#2179) 2023-04-05 11:31:13 +02:00
marc0246
16424efec3
Fix changelog (#2178) 2023-04-04 02:46:05 -05:00
marc0246
a003ae108b
Fix markdown tables (#2177) 2023-04-04 02:45:50 -05:00
marc0246
1f237a6422
Fix Buffer docs (#2176) 2023-04-04 02:45:20 -05: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
83557afc1e
#2174 changelog 2023-04-02 15:08:41 +02:00
marc0246
59be815314
Refactor AllocationCreateInfo (#2174)
* Refactor `AllocationCreateInfo`

* `debug_assert` -> `assert`
2023-04-02 15:07:16 +02:00
Rua
02034e87d7
#2173 changelog 2023-04-01 18:53:32 +02:00
marc0246
22d26d6118
Fix bytemuck dependency (#2173) 2023-04-01 18:52:59 +02:00