Commit graph

669 commits

Author SHA1 Message Date
Gabriel Majeri 0c26422215 Separate getters for vectors into two functions
One is safe, used to determine how many structures will be returned.
The other is unsafe, and takes in a mutable reference to an array
of structure chains.
2018-08-25 11:53:15 +03:00
Maik Klein f161e2d967
Merge pull request #115 from GabrielMajeri/fix-example-close
Fix closing the examples through the close button
2018-08-25 10:21:17 +02:00
Gabriel Majeri 86bdc3cecd Fix closing the examples 2018-08-25 11:06:30 +03:00
Gabriel Majeri 0786d71b39 Fix Vulkan version macros 2018-08-25 10:51:57 +03:00
Brian Merchant a10935eaf7 bug fixes for VK_EXT_debug_utils wrapper 2018-08-24 15:11:19 +02:00
Gabriel Majeri 53161660ef Fix instance getters to support extensions
This commit allows the user to pass in a chain of structures
to be filled in by the Vulkan driver.
2018-08-23 10:22:06 +03:00
Maik Klein 898e9791b7
Merge pull request #110 from MatusT/generator
Default trait: set pointers to std::ptr::null()/null_mut()
2018-08-23 07:18:21 +02:00
Maik Klein 9edecfd476
Merge pull request #108 from GabrielMajeri/entry-1.1
Make `enumerate_instance_version` an `Entry` function
2018-08-23 07:13:08 +02:00
Maik Klein b84596fb9a
Merge pull request #102 from Ralith/fix-flags-display
More robust Display for flags types
2018-08-23 07:08:32 +02:00
Matus Talcik 7e505347f4 Default trait: set pointers to std::ptr::null()/null_mut() instead of zeroed 2018-08-22 22:53:17 +02:00
Gabriel Majeri c4d92d410b Make enumerate_instance_version safe 2018-08-22 10:51:05 +03:00
Gabriel Majeri ce6820f923 Add traits and FP loading for Entry 1.1 2018-08-22 10:49:41 +03:00
Gabriel Majeri 67ea40b30c Regenerate vk.rs 2018-08-22 10:33:58 +03:00
Gabriel Majeri 15839ddc4e Move enumerate_instance_version to Entry
Also adds `EntryV1_1` trait

# Conflicts:
#	ash/src/version.rs
2018-08-22 10:24:50 +03:00
Maik Klein 3e812896ff
Merge pull request #107 from GabrielMajeri/export-v1_1
Export Vulkan 1.1 traits
2018-08-22 09:16:58 +02:00
Gabriel Majeri 22cce9be30 Export the Vk 1.1 traits 2018-08-22 10:06:03 +03:00
Maik Klein 0760798108
Merge pull request #106 from Ralith/cmd_copy_query_pool_results
Expose cmd_copy_query_pool_results
2018-08-22 06:46:16 +02:00
Benjamin Saunders a0424596a5 More robust Display for flags types
Fixes strange behavior if a Vulkan flags constant setting multiple bits
is defined prior to that which sets only one of those bits.
2018-08-21 21:16:08 -07:00
Benjamin Saunders b1451747b5 Expose cmd_copy_query_pool_results 2018-08-21 21:14:10 -07:00
Maik Klein d99ac29747
Merge pull request #104 from GabrielMajeri/export-debug
Export the DebugUtils extension
2018-08-21 15:16:32 +02:00
Gabriel Majeri b5651ed351 Export the DebugUtils extension 2018-08-21 16:04:57 +03:00
Maik Klein 2f60f8f1d5
Merge pull request #101 from Ralith/raw-enums
Expose conversions between enums and raw values
2018-08-21 14:13:57 +02:00
Benjamin Saunders d5666554fc Expose conversions between enums and raw values 2018-08-20 23:56:33 -07:00
Maik Klein e546fbbb5d [Fix] BitPos can be negative 2018-08-20 09:55:41 +02:00
Maik Klein 8521f01488 Switch to manual_derives 2018-08-20 07:32:30 +02:00
Maik Klein 6a329084e8 Add generator to travis 2018-08-20 07:32:30 +02:00
Maik Klein 071fe412c1
Merge pull request #99 from Ralith/display
impl Display for constants
2018-08-20 07:32:20 +02:00
Benjamin Saunders 6738c4c01c impl Display for constants 2018-08-19 20:13:02 -07:00
Maik Klein c4e4ab8fc2 Temporary implement Hash and PartialEq for certain types that only
contain primtive types
2018-08-19 10:10:11 +02:00
Maik Klein 20d5ba9f7f
Merge pull request #97 from bzm3r/generator
pin vk-parse to crates.io
2018-08-18 07:55:30 +02:00
Brian Merchant 21a4eef1f8 pin vk-parse to crates.io 2018-08-17 12:26:32 -07:00
Maik Klein c4e9feb9b7
Merge pull request #88 from Ralith/handle
Handle trait, VK_EXT_debug_utils
2018-08-04 23:04:57 +02:00
Benjamin Saunders e65a24ddcd Wrap VK_EXT_debug_utils 2018-08-04 13:49:16 -07:00
Benjamin Saunders 6e54dd346e Introduce Handle trait 2018-08-04 12:22:09 -07:00
Maik Klein a1f79e102d
Merge pull request #92 from Cyres/boolean-type
Change type of `TRUE` and `FALSE` to `Bool32`
2018-08-03 16:31:09 +02:00
Tim 92d0541170 Change type of TRUE and FALSE to Bool32 2018-08-03 15:39:25 +02:00
Maik Klein 4797c12c89
Merge pull request #90 from Cyres/repr-transparent
Use repr(transparent) where possible and apply rustfmt to those files
2018-08-03 15:14:09 +02:00
Maik Klein 016cc1056b
Merge pull request #87 from Cyres/generator
Add new functions from 1.1
2018-08-03 14:42:14 +02:00
Tim cda39148e9 Mark some more functions as unsafe 2018-08-03 12:51:03 +02:00
Tim 59d49b2159 Apply rustfmt 2018-08-03 12:37:28 +02:00
Tim 2256c431be Use repr(transparent) where possible and apply rustfmt to those files 2018-08-03 12:34:14 +02:00
Tim 623c26c9bc Add functions for DeviceV1_1 2018-08-03 12:22:51 +02:00
Tim eeb17a07a1 Merge remote-tracking branch 'origin/generator' into generator 2018-08-03 11:55:27 +02:00
Maik Klein 3bea365299 Update to rust 1.28 for appveyor 2018-08-03 08:45:28 +02:00
Maik Klein 2c5364871e Update winit to 0.16 2018-08-02 21:22:46 +02:00
Maik Klein e3526b467c Remove unused enumflags dependencies 2018-08-01 18:46:02 +02:00
Tim e230d6ae81 Add functions for Instance 2018-08-01 16:51:43 +02:00
Maik Klein c0e98cdf78 New signature for enumerate_instance_version 2018-08-01 09:50:24 +02:00
Maik Klein a6d5a124df Rename constants in the example and inside static arrays 2018-08-01 09:22:28 +02:00
Maik Klein 33a0eee190 Remove "VK" from constants 2018-08-01 09:12:39 +02:00