Commit Graph

3293 Commits

Author SHA1 Message Date
Rua
0ebf05f35d
Bring vertex input in line with other pipeline state, reorganise modules (#1758)
* Bring vertex input in line with other pipeline state, reorganise modules

* Documentation improvement

* Use ShaderInterfaceEntryType in shader interface instead of format

* Example fix
2021-12-06 03:30:56 +07:00
Ilya Lakhin
3845925655 #1765 Changelog update 2021-11-24 22:54:51 +07:00
Ilya Lakhin
29dcd28dc4
Fixes a bug when using vulkan-shaders macro with multiple shaders in release mode (#1765) 2021-11-24 22:53:43 +07:00
Ilya Lakhin
8152f3b9d1 #1760 Changelog update 2021-11-24 22:03:26 +07:00
Rua
281f8bd93d
Add type_for_format macro (#1760)
* Add `type_for_format` macro

* Doc thinko
2021-11-24 22:02:36 +07:00
Will Song
aa5a97481e
use repr(C) (#1757) 2021-11-24 21:19:57 +07:00
Ilya Lakhin
fc45a3516b #1754 Changelog update 2021-11-24 20:52:47 +07:00
Rua
66d545c4cf
Add shaderc-debug feature to Vulkano-shaders (#1754) 2021-11-24 20:51:55 +07:00
Ilya Lakhin
9afc00f926 #1753 Changelog update 2021-11-24 20:04:32 +07:00
Will Song
9041858430
Shader improvements (#1753)
* add Eq, PartialEq to ShaderExecution and thus GeometryShaderExecution

* use (String, ExecutionModel) to describe each entry point instead

* update tests

* Revert "update tests"

This reverts commit 2bd07d1ef4.

* keep old entry_point interface but introduce new entry_point_with_execution for fine grained selection

* update tests

* move traits to autogen

* oops
2021-11-24 20:03:10 +07:00
Ilya Lakhin
124305a191 #1751 Changelog update 2021-11-24 01:40:59 +07:00
Rua
9ac0de2842
Allocate less than the maximum descriptor count when variable (#1751)
* Allocate less than the maximum descriptor count when variable

* Workaround for driver bug
2021-11-24 01:33:10 +07:00
Ilya Lakhin
b84b0c9c55 #1734 Changelog update 2021-11-23 19:59:37 +07:00
Francisco Ayala Le Brun
4d0e709c18
Fixes related to Image export & OpenGL Interop (#1734)
* Fix device memory missing p_next structures

* Fix exportable attachment image missing p_next; Fix mutable bit off

* Fix fd export for StorageImage

* Add gl-interop example; Remove debug assert comment

* Fix gl-interop example being run on Windows and MacOS

* Add builder field to DeviceMemoryBuilder
2021-11-23 19:55:32 +07:00
Ilya Lakhin
6ff023e5af #1748 Changelog update 2021-11-20 22:16:40 +07:00
Rua
a2dd3f91fa
Two fixes for extension requirements (#1748)
* Consider promotion when checking for extension requirements

* Only check for features required by extensions above a certain API version
2021-11-20 22:15:36 +07:00
Ilya Lakhin
1db775bf3c #1747 Changelog update 2021-11-13 22:09:40 +07:00
Rua
c6959aa961
Move shader analysis to Vulkano crate, make available for runtime shaders (#1747)
* Move shader parsing and information extraction to Vulkano, make available for runtime shaders

* Small change

* Add new pipeline stages to match shader stages

* Fix review issues
2021-11-13 22:06:16 +07:00
Ilya Lakhin
eb7e0c9ce0 #1744 Changelog update 2021-11-13 17:12:01 +07:00
Rua
325ef8ee38
Check against DescriptorRequirements instead of pipeline layout at draw time (#1744) 2021-11-13 17:10:52 +07:00
Rua
0e25167eb2
Fix AutoCommandBufferBuilder documentation (#1745) 2021-11-03 18:21:40 +07:00
Ilya Lakhin
30ea9e9b2f #1739 Changelog update 2021-11-03 03:35:37 +07:00
Rua
189a589002
Arcs, Arcs everywhere (#1739)
* `Arc`s, `Arc`s everywhere

* Additional types that I forgot

* Include Arc when returning image from ImageView
2021-11-03 03:33:58 +07:00
Ilya Lakhin
f187d0b178 #1732 Changelog update 2021-10-26 23:13:47 +07:00
Rua
520d15532b
Rework DescriptorSetResources and DescriptorWrite (#1732)
* Rework `DescriptorSetResources` and `DescriptorWrite`

* Small fix

* Simplification in DescriptorWrite
2021-10-26 23:11:43 +07:00
Ilya Lakhin
f7f5e42190 #1729 Changelog update 2021-10-26 00:27:36 +07:00
Rua
5a326db546
Add DescriptorRequirements (#1729)
* Add DescriptorRequirements

* Doc fix
2021-10-26 00:16:54 +07:00
Ilya Lakhin
47b9c5b595 #1727 Changelog update 2021-10-20 21:58:11 +07:00
Rua
35fed6b577
Add basic support for khr_push_descriptor (#1727)
* Add basic support for khr_push_descriptor

* Add basic support for khr_push_descriptor

* Support arrays in `DescriptorWrite`

* Use assert when creating the builder
2021-10-20 21:56:56 +07:00
Ilya Lakhin
9aba801319 #1726 Changelog update 2021-10-20 21:13:27 +07:00
Jason Macnak
3634518e49
Add android platform to external memory cfgs (#1726) 2021-10-20 21:11:32 +07:00
Ilya Lakhin
32a007f193 #1725 Changelog update 2021-10-12 19:58:46 +07:00
Rua
1a1f8eab2b
Add RangeSet utility type, check that all push constants needed have been set (#1725)
* Add `RangeSet` utility type, check that all push constants needed have been set

* Copyright year

* Inline
2021-10-12 19:56:13 +07:00
Ilya Lakhin
59343f6306 #1724 Changelog update 2021-10-12 19:50:24 +07:00
Rua
64ca6f78e1
Lots of additional dynamic state, and some new pipeline state (#1724)
* Add extra dynamic state commands to the command buffer builders

* Add TessellationState

* Re-enable InputAssemblyState, add dynamic state, update Ash

* Rework depth_stencil module, add dynamic state

* Rename module raster > rasterization, add dynamic state

* Replace DynamicStateMode with bool, replace Option with StateMode enum for potentially dynamic states, rename Blend > ColorBlendState, add dynamic state

* Re-enable MultisampleState

* Re-enable ViewportState, add state to GraphicsPipeline with retrieval methods, add dynamic state

* Add builder methods for state types

* Color blend improvements

* Further checks on input assembly dynamic state

* Add color_write_enable

* Add topology class, check that it matches

* Add line_stipple

* Move some builder code to the individual state types

* Add discard rectangles

* Trim down GraphicsPipelineCreationError variants, order alphabetically
2021-10-12 19:42:32 +07:00
Austin Johnson
14f7ad57ac
Changelog update for 0.26 2021-10-03 09:07:34 -05:00
Austin Johnson
baef23e1f8
0.26 (#1723) 2021-10-03 08:57:22 -05:00
Austin Johnson
5e2eb4249a
Changelog entries for #1722
https://github.com/vulkano-rs/vulkano/pull/1722
2021-10-03 01:18:02 -05:00
Rua
464fc0d549
Track state in the pipeline, invalidate dynamic state when binding pipeline with fixed state (#1722)
* Track state in the pipeline, invalidate dynamic state when binding pipeline with fixed state

* Rename `Compare` to `CompareOp`, rearrange builder a little

* Nicer and more failsafe command buffer dynamic state checking
2021-10-03 01:17:05 -05:00
Austin Johnson
6b17090b4c
Changelog entries for #1721 2021-09-29 12:02:08 -05:00
Rua
885fbc6a4c
Add Send + Sync requirements to various traits (#1720)
* Remove Send + Sync and BufferAccess traits where they are redundant

* Require Send + Sync for ImageViewAbstract

* Require Send + Sync for ImageAccess, AttachmentsList and MemoryPoolAlloc

* Require Send + Sync for DescriptorSet and DescriptorPoolAlloc

* Require Send + Sync for FramebufferAbstract

* Minor rearranging

* Require Send + Sync for PrimaryCommandBuffer, SecondaryCommandBuffer and CommandPoolAlloc

* Require Send + Sync for Command (private trait)

* Cargo fmt
2021-09-29 12:00:56 -05:00
Austin Johnson
9122da1356
Changelog entries for #1718 #1719 #1721 2021-09-29 01:26:32 -05:00
Rua
ab0464830b
Group command buffer state retrieval under a new CommandBufferState (#1721) 2021-09-29 01:20:06 -05:00
Rua
17820738d8
Replace Iterator parameters with IntoIterator where possible, replace various iterator types with impl Iterator (#1719) 2021-09-29 01:15:39 -05:00
Robin Heinemann
131f5b0f0f
Add AutoCommandBufferBuilder::clear_depth_stencil_image (#1718)
Signed-off-by: Robin Ole Heinemann <robin.ole.heinemann@gmail.com>
2021-09-29 01:13:05 -05:00
Rua
5e4da07685
Limit compatibility check for bound descriptor sets to the length of the current layout (#1716)
* Limit compatibility check for bound descriptor sets to the length of the current layout

* Set new pipeline layout if it's a superset of the old one

* Preferentially use new layout if they are identical
2021-09-29 01:06:49 -05:00
Robin Heinemann
c1da957797
fix array_element accounting for add_buffer_view (#1717) 2021-09-21 17:20:38 -05:00
Rua
cb362c9221
Change inner-documentation html links to use Rust paths (#1713) 2021-09-21 05:16:27 +07:00
Ilya Lakhin
1f2044ae7a #1712 Changelog update 2021-09-21 05:15:02 +07:00
Rua
a7813baac3
Add inner method to AutoCommandBufferBuilder (#1712) 2021-09-21 05:12:07 +07:00