From 6f1a5e4cc39b3a843ef1940f478822979f1a4141 Mon Sep 17 00:00:00 2001 From: Ulrik Guenther Date: Tue, 21 May 2024 14:57:53 +0200 Subject: [PATCH] VulkanTexture: Adjust for new API usage in fromEmpty() --- .../scenery/backends/vulkan/VulkanTexture.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/graphics/scenery/backends/vulkan/VulkanTexture.kt b/src/main/kotlin/graphics/scenery/backends/vulkan/VulkanTexture.kt index f578aeddb..0b6cb8339 100644 --- a/src/main/kotlin/graphics/scenery/backends/vulkan/VulkanTexture.kt +++ b/src/main/kotlin/graphics/scenery/backends/vulkan/VulkanTexture.kt @@ -658,11 +658,11 @@ open class VulkanTexture( defaultValue: Int, device: VulkanDevice, commandPools: VulkanRenderer.CommandPools, - queue: VkQueue, - transferQueue: VkQueue + queue: VulkanDevice.QueueWithMutex, + transferQueue: VulkanDevice.QueueWithMutex ): VulkanTexture { - var texWidth = 2 - var texHeight = 2 + val texWidth = 2 + val texHeight = 2 val mipmapLevels = 1 @@ -672,9 +672,10 @@ open class VulkanTexture( texWidth, texHeight, 1, VK_FORMAT_R8G8B8A8_SRGB, mipmapLevels, - true, true) + minFilterLinear = true, maxFilterLinear = true + ) - val buffer = MemoryUtil.memCalloc(4*texWidth*texHeight) + val buffer = memCalloc(4*texWidth*texHeight) val v = buffer.asIntBuffer() while(v.hasRemaining()) { v.put(defaultValue)