Skip to content

Commit

Permalink
VulkanTexture: Adjust for new API usage in fromEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
skalarproduktraum committed May 21, 2024
1 parent 9a7a8e8 commit 6f1a5e4
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit 6f1a5e4

Please sign in to comment.