vulkan-ruby 1.3.207.4 → 1.3.207.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/vulkan/logical_device.rb +1 -0
- data/lib/vulkan/memory.rb +3 -1
- data/lib/vulkan/pipeline.rb +4 -4
- data/lib/vulkan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb8eb88ebc788ecea9584d4489e9cfb1c87ccdf296ddda38f9c236ab3c4cc90a
|
4
|
+
data.tar.gz: ac4fc032baac3a114f56b57f8302a06de8ee8ec4d3f5c2d7eee6a78e2cb32ab1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2852867b97c52d2a675a9ac11c1fef456f64d2537efe1c89fd6a73590cd8bf9119670d6c909a58c1079fc6a1b6568ee45d56711a6e8ac5e1b09f6f15531a856
|
7
|
+
data.tar.gz: 1875b8237d80efe003e24c0cdda90d8c20a16fd0c8f50d30fc484f6592d1cad674b12f3e6599b08c750d1d3ee9ae0c0da3a56c851625b1fdb83c39bd362f03f5
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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
|
data/lib/vulkan/pipeline.rb
CHANGED
@@ -38,8 +38,8 @@ module Vulkan
|
|
38
38
|
@scissor = {
|
39
39
|
left: 0,
|
40
40
|
top: 0,
|
41
|
-
width:
|
42
|
-
height:
|
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
|
data/lib/vulkan/version.rb
CHANGED