Commit Graph

2542 Commits

Author SHA1 Message Date
tomaka
6c81d8081a Make the Layout generated by vulkano-shaders entirely public (#787) 2017-08-28 11:39:40 +02:00
tomaka
9227c6ba8d Remove Option in UnsafeCommandPoolAllocIter (#786) 2017-08-28 11:39:30 +02:00
tomaka
a630a5efb1 Publish 0.6.1 (#783) 2017-08-27 10:56:28 +02:00
tomaka
e07cbf1d49 Add the logo to the README (#779)
* Add the logo to the README

* Try fix style

* Try fix style
2017-08-27 10:04:37 +02:00
tomaka
2cbdb288d4 Make specialization constants work (#780)
* Add new template parameters for GraphicsPipelineBuilder

* Add support for the specialization constants in build()

* Fix SpecializationConstants fields being private

* Fix lifetime problem in SpecializationConstants::descriptors()

* Run rustfmt on builder.rs
2017-08-27 10:04:18 +02:00
tomaka
a54281f8ec Add a link to the README in the Cargo.toml (#751) 2017-08-27 10:04:11 +02:00
tomaka
e37c136090 More documentation for SpecializationConstants (#778)
* More documentation for SpecializationConstants

* Fix doctest
2017-08-26 21:06:23 +02:00
tomaka
a8058022bd Continue cleanup of the graphics pipeline builder code (#777)
* Move GraphicsPipeline::new_inner() as GraphicsPipelineBuilder::build()

* Move GraphicsPipelineCreationError to a separate module

* Remove GraphicsPipelineParams

Signed-off-by: tomaka <pierre.krieger1708@gmail.com>

* Remove GraphicsPipelineParamsTess

Signed-off-by: tomaka <pierre.krieger1708@gmail.com>
2017-08-26 13:06:05 +02:00
tomaka
5207f8a703 Reflect specialization constants in vulkano-shaders (#774) 2017-08-26 11:34:00 +02:00
tomaka
799b508a31 Use a lock-free queue in the FixedSizeDescriptorSetsPool (#771) 2017-08-26 09:51:35 +02:00
Gabriel Majeri
08a4dbe6e1 Fix ApplicationInfo::from_cargo_toml (#776)
* Replace `from_cargo_toml` with a macro

* Update docs

* Use `None` as ApplicationInfo default

* Re-add and deprecate the old function

* Fix doctest

* Rename macro to `app_info_from_cargo_toml`

* Update deprecated note

* Fix build
2017-08-26 08:07:16 +02:00
tomaka
0b126e58a9 Derive Clone for GraphicsPipelineBuilder (#775) 2017-08-25 15:26:23 +02:00
tomaka
34027ac6e7 More documentation for buffers (#763) 2017-08-25 11:49:29 +02:00
tomaka
f13454dc6e Use SmallVec::truncate in state_cacher (#770) 2017-08-25 11:48:58 +02:00
tomaka
1640220ebf More fixes in limits_check (#773) 2017-08-25 11:48:13 +02:00
tomaka
2f9c9ff6b0 Update link to triangle example (#767) 2017-08-25 11:48:05 +02:00
tomaka
361c969fb6 Remove some unused variables and functions (#766) 2017-08-24 17:36:54 +02:00
Gabriel Majeri
ceb4ebdc95 Add more badges (#768) 2017-08-24 14:47:39 +02:00
tomaka
0f05fc8d57 Fix number of sets in vulkano-shaders (#764) 2017-08-23 18:07:54 +02:00
tomaka
2f2b97e5d5 Add some constructors to CpuBufferPool (#752) 2017-08-23 15:47:46 +02:00
tomaka
4208814e74 Fix #760 (#761) 2017-08-23 15:45:37 +02:00
tomaka
94c376c268 Check pipeline layout limits (#757)
* Check pipeline layout limits

* Fix copyright year

* Fix unimplemented!() for PipelineLayoutLimitsError

* Fix style

* Fix minor mistake
2017-08-22 14:29:28 +02:00
tomaka
06a0b3715f Fix #749 (#755)
* Fix #749

* Fix gpu access methods
2017-08-21 11:07:42 +02:00
Gabriel Majeri
6874eced95 Prevent creating a new swapchain from a stale one (#754)
* Prevent recreating a stale swapchain

* Update comments and docs

* Update comments

* Remove quotes

* Remove `Swapchain::new` comment
2017-08-20 19:46:26 +02:00
Gabriel Majeri
ebf902eaeb Add more examples to swapchain docs (#753) 2017-08-20 11:00:52 +02:00
Matteo De Carlo
d55a4d6d7c Add Surface::new() (#748)
* Add Surface::new()

Creates a `Surface` given the raw handler

* Surface::from_raw_surface instead of new

and removed useless clone
2017-08-18 22:04:10 +02:00
tomaka
411b4e7546 Publish vulkano 0.6.0 (#747) 2017-08-17 14:05:43 +02:00
tomaka
f02e021158 Remove the list of queue families in most places when creating a buffer or image (#746)
* Add Device::active_queue_families()

* Remove queue families parameter for ImmutableImage

* Remove queue families param from ImmutableBuffer

* Remove queue_families parameter from CpuBufferPool

* Remove queue families parameter from CpuAccessibleBuffer

* Fix examples
2017-08-17 11:59:59 +02:00
Nicolas Koch
3eb2d7a168 Support for VK_KHR_incremental_present (#729)
* Implement support for VK_KHR_incremental_present

The public interface is mainly extended by a new function:
swapchain::present_incremental

* Fix nits from PR

* Remove PresentRegion::to_vk

* Fix more nitpicks
2017-08-17 11:27:21 +02:00
tomaka
5e110ae981 Add FixedSizeDescriptorSetsPool (#742)
* Draft for fixed size pool

* DescriptorPool::alloc now takes a &mut self

* Implement unimplemented methods

* Allocate all descriptor sets beforehand

* Fix missing reexports

* Add some documentation
2017-08-16 11:40:32 +02:00
tomaka
855fa26496 Remove the call to vkDeviceWaitIdle in Device::drop (#743) 2017-08-16 10:13:54 +02:00
tomaka
3b8657869a Minor fix in update_buffer (#745) 2017-08-16 10:13:48 +02:00
tomaka
66303c142d "Remove" the deprecated GraphicsPipelineParams (#739)
* "Remove" the deprecatred GraphicsPipelineParams

* Fix imports
2017-08-15 17:15:57 +02:00
tomaka
c40954c169 Cache vertex buffers (#687)
* Cache vertex buffers

* Fix bugs in code

* Add some tests for VB caching
2017-08-13 12:15:08 +02:00
tomaka
a64666b62f Finish implementing dedicated allocation (#731)
* Finish implementing dedicated allocation

* Fix mapping inversion

* Remove arbitrary dedicated alloc determination

* Turn alloc() into alloc_from_requirements()
2017-08-11 10:24:53 +02:00
tomaka
18559a94cb More constructor shortcuts for AttachmentImage (#734) 2017-08-11 10:24:33 +02:00
tomaka
5f4f453b6f Correct recovery in SyncCommandBuffer::lock_submit (#733) 2017-08-08 17:46:09 +02:00
tomaka
a067f6e89d Add resolve to ordered_passes_renderpass! (#727) 2017-08-08 17:00:02 +02:00
tomaka
ae51cd154f Fix wrong image dimensions being checked when copying from buffer (#728) 2017-08-06 20:46:12 +02:00
tomaka
b47335cbd5 Add StorageImage::with_usage (#723) 2017-08-06 16:29:22 +02:00
tomaka
986e159a7e Fix CpuBufferPool capacity (#725)
* Fix CpuBufferPool capacity

* Add a test
2017-08-05 21:23:45 +02:00
tomaka
8273fb5530 Fix #772 (#724) 2017-08-05 14:06:08 +02:00
tomaka
d55cbf04f6 Update Cargo.toml metadata (#721) 2017-08-05 11:06:13 +02:00
tomaka
83e643c234 Work on support for queries (#718)
* Move query.rs to query/mod.rs

* Remove genericity over Device

* Replace device() with DeviceOwned impls

* Add unsafe query methods to UnsafeCommandBufferBuilder
2017-08-05 10:33:30 +02:00
tomaka
9e65c250e1 Fix the image dimensions check being too strict (#719) 2017-08-05 10:32:58 +02:00
tomaka
3bfd84544e Add the triangle guide example (#720) 2017-08-05 10:32:14 +02:00
tomaka
6abeba4f3d Remove PipelineLayoutDescNames (#712) 2017-08-03 12:01:25 +02:00
tomaka
bf82214ec1 Rework shader entry points (#708) 2017-08-02 10:42:30 +02:00
tomaka
a4589e7a16 Add documentation and small fixes to the sync builder (#706)
* Add documentation and small fixes to the sync builder

* Move synced.rs to a directory

* Split sync.rs between base.rs and commands.rs

* Some documentation on base.rs

* Make sync builder fields private again

* Do not implement CommandBuffer on SyncCommandBuffer

* Minor synx fixes to AutoCommandBuffer

* Fix compilation

* More documentation in base.rs

* Fix compilation

* Add some basic tests for sync
2017-07-31 20:47:00 +02:00
tomaka
d94adf0f99 Remove some deprecated functions (#707) 2017-07-31 20:46:54 +02:00