vulkan-ruby 1.3.207.4 → 1.3.207.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c23ff63e2897285a423943889a3e200b4c61ec661507d74754da2050ba380e20
4
- data.tar.gz: '09c257d2f083228cd9bf5fcc6c6580b433bd93d0ee1427d1dd0a7d6c1ff63a2f'
3
+ metadata.gz: cb8eb88ebc788ecea9584d4489e9cfb1c87ccdf296ddda38f9c236ab3c4cc90a
4
+ data.tar.gz: ac4fc032baac3a114f56b57f8302a06de8ee8ec4d3f5c2d7eee6a78e2cb32ab1
5
5
  SHA512:
6
- metadata.gz: 04b2cc3fd71ce5e012f49d1b56311819aad7f04357ee71ed988c98da3ce043e2b85e278ad2231494194715170618305642f7744b590a9c36478fce54439cbdf2
7
- data.tar.gz: 2262e2d1ffdaef49e54abeff40b1d9a133b41a9ce2e606830812a5b451c0a278f7bbdfa54e69ca5f4bcbfbd71cbed7b0cc053dd07e9e7464911656b186ff64bc
6
+ metadata.gz: d2852867b97c52d2a675a9ac11c1fef456f64d2537efe1c89fd6a73590cd8bf9119670d6c909a58c1079fc6a1b6568ee45d56711a6e8ac5e1b09f6f15531a856
7
+ data.tar.gz: 1875b8237d80efe003e24c0cdda90d8c20a16fd0c8f50d30fc484f6592d1cad674b12f3e6599b08c750d1d3ee9ae0c0da3a56c851625b1fdb83c39bd362f03f5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vulkan-ruby (1.3.207.4)
4
+ vulkan-ruby (1.3.207.5)
5
5
  sorted_set
6
6
 
7
7
  GEM
@@ -15,6 +15,7 @@ module Vulkan
15
15
  @physical_device = physical_device
16
16
 
17
17
  extensions.concat ENV['DEVICE_EXTENSIONS'].split(/\:\s/) if ENV['DEVICE_EXTENSIONS']
18
+ extensions << 'VK_KHR_portability_subset' if physical_device.extension_names.include?('VK_KHR_portability_subset')
18
19
 
19
20
  if queues.size == 0
20
21
  # take the first available queue, to satisfy the spec (must request a queue)
data/lib/vulkan/memory.rb CHANGED
@@ -107,7 +107,9 @@ module Vulkan
107
107
  #
108
108
  # See https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkInvalidateMappedMemoryRanges.html
109
109
  def invalidate_all(ranges)
110
- @vk.vkInvalidateMappedMemoryRanges(@vk.device, ranges.size, memory_ranges(ranges))
110
+ if mapped?
111
+ @vk.vkInvalidateMappedMemoryRanges(@vk.device, ranges.size, memory_ranges(ranges))
112
+ end
111
113
  end
112
114
 
113
115
  # Provides a pointer to an array of memory ranges for e.g. flushing memory
@@ -38,8 +38,8 @@ module Vulkan
38
38
  @scissor = {
39
39
  left: 0,
40
40
  top: 0,
41
- width: 0xffffffff,
42
- height: 0xffffffff
41
+ width: 0x7fffffff,
42
+ height: 0x7fffffff
43
43
  }.merge(scissor)
44
44
  @rasterizer = {
45
45
  depth_clamp: false,
@@ -189,8 +189,8 @@ module Vulkan
189
189
  scissor = VkRect2D.malloc
190
190
  scissor.offset.x = @scissor[:left]
191
191
  scissor.offset.y = @scissor[:top]
192
- scissor.extent.width = @scissor[:width]
193
- scissor.extent.height = @scissor[:height]
192
+ scissor.extent.width = @scissor[:width] == 0x7fffffff ? 0x7fffffff - @scissor[:left] : @scissor[:width]
193
+ scissor.extent.height = @scissor[:height] == 0x7fffffff ? 0x7fffffff - @scissor[:top] : @scissor[:height]
194
194
 
195
195
  viewport_state = VkPipelineViewportStateCreateInfo.malloc
196
196
  viewport_state.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO
@@ -1,7 +1,7 @@
1
1
  require 'vulkan/generated/version'
2
2
 
3
3
  module Vulkan
4
- VULKAN_RUBY_VERSION = [ 4 ]
4
+ VULKAN_RUBY_VERSION = [ 5 ]
5
5
 
6
6
  VERSION = [ VK_API_VERSION_MAJOR,
7
7
  VK_API_VERSION_MINOR,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vulkan-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.207.4
4
+ version: 1.3.207.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin MacKenzie IV