Commit Graph

2751 Commits

Author SHA1 Message Date
Rua
1f27ab3ea9
AutoCommandBufferBuilder takes &mut self instead of self (#1376)
* AutoCommandBufferBuilder takes &mut self instead of self

* Changelog message
2020-06-01 09:41:42 -05:00
Austin Johnson
a4591a20cf
update examples to use ImageUsage::color_attachment instead of caps.supported_usage_flags (#1373)
* add additional ImageUsage constructors

* update examples to use ImageUsage::color_attachment instead of caps.supported_usage_flags

* fix additional usage in multi-window example

* update ignore to not include mandelbrot.png and triangle.png

* update ignore to not include mandelbrot.png and triangle.png
2020-06-01 02:10:02 -05:00
Austin Johnson
536ac5303b
add additional ImageUsage constructors (#1372) 2020-06-01 00:47:34 -05:00
Austin Johnson
4e3d38ac5b
update half & metal; fix couple of warnings; add missing changelog entries (#1364) 2020-05-15 19:14:25 -05:00
Richard Diamond
57c545d7ab
Add support for the Physical Storage Buffer Access feature. (#1359)
This feature was recently promoted from an extension to the core spec in Vulkan 1.2. It is already supported on many recent drivers: NVidia, Mesa RADV, and AMDVLK.

Other than supporting enabling the feature and the basic buffer address query, I made no attempt to create safe interfaces for its use. Such will come later, after I've experimented with its use in Geobacter.
2020-05-15 13:26:06 -05:00
Sam Smith
68cc93932d
Added more detailed explenation to docs (#1361)
* Change documentation.

Changed the documentation to explain how the data layout of an image is changed as it is copied from image to buffer.

* Fixed the trailing whitespace
2020-05-13 15:35:56 -05:00
one-bit
c96309e55e
Fixed warnings (#1363)
* Fixed all warnings as of Rust 1.43.1

* Update CHANGELOG_VULKANO.md

- Fixed all warnings as of Rust 1.43.1
2020-05-12 19:57:40 -05:00
Trangar
df493136cf
Added a .boxed() function to GpuFuture to reduce boilerplate code (#1362) 2020-05-12 18:05:09 -05:00
Richard Diamond
15b4a955f7
Fix an abort() in the tests. (#1358)
Not sure how widespread this issue is, I'm on Mesa 20.0 currently. I've re-enabled a heap size check only when the reported size is != 0, because MoltenVK apparently has an issue with the reported heap sizes.
2020-05-12 17:21:03 -05:00
jeffw387
315f63abe5
new function to check image/device compatibility (#1339)
* new function to check image/device compatibility

* merged master to get rustfmt changes, format all
2020-05-09 19:36:20 -05:00
Ilya Lakhin
4f89414143
Dynamic Compute Shader local size (#1357)
* Exposing additional properties from the physical device

* dynamic-local-size example

* Changelog fix

* Extra whitespaces in changelog removed
2020-05-09 10:46:12 -05:00
Ilya Lakhin
f211a3af2a
Anonymous specialization constants support (#1338) 2020-05-09 05:59:10 -05:00
Branan Riley
c74ac31f27
Allow applications to access the loaded function pointers (#952)
Without this, an application has to create their own loader for the
Vulkan function pointers if they need to drop down to raw Vulkan
calls. It's not a lot of effort to load them, but it's nicer to just
have them available on the Instance or Device rather than having to
pass an extra parameter around for function pointer access.

Co-authored-by: Austin Johnson <me@austinj.work>
2020-05-08 19:02:07 -05:00
jdnewman85
48109761a8
Add CpuBufferPool example (#1352)
* Use traingle example as template

* Remove triangle example comments

* Switch to CpuBufferPool chunks instead of CpuAccessibleBuffer for vertex data

* rustfmt

* Keep unwrap()s on same line
2020-05-08 17:26:34 -05:00
jdnewman85
00ba3ac285
Delete .rustfmt.toml (#1353)
Almost none of the options are valid anymore. The few that are, seem to be default. I move to delete the .rustfmt.toml completely, to allow rustfmt to be run without config errors.
2020-05-08 17:23:47 -05:00
SuperSamus
5aee07050b
Fix typo on CpuAccessibleBuffer doc comment (#1346)
Also removed unnecessary newline.
2020-04-29 05:30:46 -05:00
Austin Johnson
b245e6c4dc
Update winit, half, and smallvec; Release 0.18 (#1332)
update winit, half, and smallvec; release 0.18
2020-03-11 20:48:15 -05:00
Austin Johnson
de2ef70a77
Release 0.17 (#1323) 2020-02-09 03:51:32 -06:00
simdimdim
8ef0beaddf
Update to winit 0.21 (#1321) 2020-02-05 23:31:02 -06:00
Austin Johnson
18189e0724
implement exclusive fullscreen (#1310)
* implement exclusive fullscreen

* fullscreen ext should be device ext

* add acquire/release

* require VK_KHR_get_surface_capabilities2

* fullscreen_exclusive is now an enum; explicit acquire/release methods added; FullscreenExclusiveError added to handle errors; FullscreenExclusiveLost varients added to acquire and present related errors

* add checks for double acquire/release; require AppControlled for acquire/release functions

* update examples and tests; resolve issue with try_gpu_lock() on SwapchainImage; update changelogs
2020-02-04 18:57:16 -06:00
Rua
287a940178
Add Send + Sync to implementations for trait objects (#1316) 2020-02-02 17:08:25 -06:00
Rua
a1176227f7
Add Eq and Hash implementations to types used in draw calls (#1314)
* Add Eq and Hash implementations to various buffer and image types

* Changelog entry

* Add Eq and Hash to graphics pipelines too

* Changelog entry

* Remove Eq and Hash from dyn GraphicsPipelineAbstract, as the device cannot be checked

* Add Eq and Hash to GraphicsPipelineAbstract, include size in buffer equality

* Add Eq and Hash to descriptor sets

* Changelog entry

* Add Eq and Hash to Instance, check for it in Device
2020-02-01 15:33:17 -06:00
José Miguel Sánchez García
c620aefd29
Add 's' to dimension in Swapchain::recreate_with_dimension (#1315) 2020-01-31 16:37:05 -06:00
Austin Johnson
dd7b202e80
export swapchain aquire suboptimal (#1311) 2020-01-29 01:44:28 -06:00
Killian
26bb70ed96
Stop Join Future from doing the same submit multiple times. (#1313) 2020-01-28 23:42:11 -06:00
Austin Johnson
50cc41dd27
Label breaking changes accordingly... (#1308)
and breaking changes are now listed at the top.
2020-01-26 19:25:48 -06:00
Austin Johnson
9977805518
Add host_cached field to all CpuAccessibleBuffer initializers to allow the user to perfer host cached memory. 2020-01-26 08:12:44 -06:00
James
044366a24c Propagate newlines correctly on error messages (#1172)
Co-authored-by: Austin Johnson <me@austinj.me>
2020-01-26 06:35:49 -06:00
Austin Johnson
1b6a5fad7c
impl partial_eq and eq for queue and queue family (#1306) 2020-01-26 05:20:34 -06:00
Austin Johnson
3e7051d94b
Update README.md (#1305) 2020-01-26 02:36:33 -06:00
Austin Johnson
56728c565f
build_vk_surface now takes EventLoopWindowTarget instead of EventLoop; added multi-window example (#1303) 2020-01-24 22:09:04 -06:00
colepoirier
ef84101ef5 Fixes issue #1284 'SharingMode::Exclusive queue family id is ignored when creating swapchain.' (#1301) 2020-01-23 18:34:48 -06:00
Austin Johnson
b95c058f9a
upgrade winit to 0.20 and cocoa to 0.20 2020-01-23 01:37:12 -06:00
Matej Kormuth
6ca6d84a87 fix #1292: add parentheses to fix int truncation (#1299) 2020-01-21 19:12:31 -06:00
Austin Johnson
85d81f778d
Fix issue with pipeline barriers not being inserted (#1290)
* inital fix

* disable windows builds; update changelog

* cbkey now has multiple command_ids
2020-01-21 00:19:15 -06:00
WarpspeedSCP
fb3ef9d43e Add function execute_commands_from_vec to accept multiple command buffers from a vector. (#1175)
* Add function `execute_commands_from_vec` to handle submission of multiple secondarycommand buffers.

* fix typo
2019-11-26 01:10:43 -06:00
wizzard
72889807e3 glsl-to-spriv submodule fix? (#1282) 2019-11-26 01:09:23 -06:00
Rua
e09588bebf Decouple descriptor sets from pipeline (#1003)
* Decoupled descriptor sets from pipeline

* Fixed error in unit test

* Fixed more

* Forgot a file

* I think it works now. Don't mind me, I'm new

* Fix new example that got added

* add changelog entry

* remove unnecessary parentheses from previous merge
2019-11-24 03:07:29 -06:00
James Lee
b8ea9bc5fc Sendable DebugCallback (#1277)
* Allow `DebugCallback` struct to be sent between threads

* Add unit test to ensure `DebugCallback` can be sent between threads

* Add changelog entry for `DebugCallback` change
2019-11-21 01:13:09 -06:00
James Lee
78284c401e Prevent building a GraphicsPipeline with a NULL handle. (#1279) 2019-11-21 01:00:06 -06:00
Austin Johnson
68f6345ed7
attempt to make travis faster (#1276)
* make travis faster

* fix config

* fix again
2019-11-18 05:19:41 -06:00
nickwilcox
b0fb255c02 Fix descriptor set codegen for SSBO after spirv update (#1275) 2019-11-17 11:20:07 -06:00
nickwilcox
0320e75f97 fix invalid markdown in shader docs (#1271) 2019-11-09 01:24:07 -06:00
Antonino Siena
1b2a39d3b0 Added Swapchain functions (#1268)
* Derive PartialEq for DescriptorDesc and added examples

* Added an example

* Example improvements

* Formatting issue

* Added Swapchain::with_old_swapchain() and integrated ColorSpace into Swapchain::new()

* Updated Changelog

* More docs and small improvement

* Added Swapchain::surface
2019-11-05 04:03:45 -06:00
Austin Johnson
ea9aa8e95d
add travis wait to commands (#1269) 2019-11-03 03:00:35 -06:00
Austin Johnson
2e6868a0c0
Downgrade Winit back to 0.19; Release Vulkano 0.16 (#1267)
* fix after revert; release 0.16

* bump shaders version
2019-11-01 10:12:17 -05:00
Austin Johnson
08d635c977
added raw_loaded_extensions() to Instance to allow querying of all extensions, not just known ones. (#1255) 2019-10-27 17:47:10 -05:00
Antonino Siena
e5d6c2cb1a Adding examples (#1256)
* Derive PartialEq for DescriptorDesc and added examples
2019-10-27 17:27:38 -05:00
Austin Johnson
212c5f6622
upgrade to vulkan 1.1 (#1258) 2019-10-27 17:27:08 -05:00
Austin Johnson
db8f699c5c
update travis config to prevent timeouts (#1261) 2019-10-27 11:58:32 -05:00