compiler bug?
This commit is contained in:
@@ -414,13 +414,13 @@ class Program
|
||||
VkBufferCreateInfo* bufferCI = scope .(null, 0,
|
||||
(.)size, .TransferSrc, .Exclusive
|
||||
);
|
||||
VkResult result = Vma.CreateBuffer(allocator, bufferCI, scope .()
|
||||
VkResult result = allocator.CreateBuffer(bufferCI, scope .()
|
||||
{
|
||||
flags = .Mapped | .HostAccessSequentialWrite,
|
||||
usage = .Auto,
|
||||
}, let transferBuffer, let transferBufferAlloc, let transferBufferAllocInfo);
|
||||
CheckResult(result);
|
||||
defer Vma.DestroyBuffer(allocator, transferBuffer, transferBufferAlloc);
|
||||
defer allocator.DestroyBuffer(transferBuffer, transferBufferAlloc);
|
||||
|
||||
Internal.MemCpy(transferBufferAllocInfo.pMappedData, ptr, size);
|
||||
|
||||
@@ -433,7 +433,7 @@ class Program
|
||||
);
|
||||
}
|
||||
bufferCI.usage = usage | .TransferDst;
|
||||
result = Vma.CreateBuffer(allocator, bufferCI, scope .()
|
||||
result = allocator.CreateBuffer(bufferCI, scope .()
|
||||
{
|
||||
usage = .Auto,
|
||||
}, out buffer, out allocation, ?);
|
||||
@@ -606,7 +606,7 @@ class Program
|
||||
}
|
||||
EmitFill();
|
||||
|
||||
result = Vma.CreateAllocator(scope .()
|
||||
result = vmaCreateAllocator(scope .()
|
||||
{
|
||||
physicalDevice = physicalDevice.device,
|
||||
device = device,
|
||||
@@ -615,17 +615,17 @@ class Program
|
||||
instance = instance
|
||||
}, out allocator);
|
||||
CheckResult(result);
|
||||
defer:: Vma.DestroyAllocator(allocator);
|
||||
defer:: allocator.Destroy();
|
||||
}
|
||||
|
||||
{
|
||||
var vertices = vertices;
|
||||
CreateAndPushBuffer(out vertexBuffer, let vertexBufferAllocation, .VertexBuffer, &vertices, sizeof(decltype(vertices)));
|
||||
defer:: Vma.DestroyBuffer(allocator, vertexBuffer, vertexBufferAllocation);
|
||||
defer:: allocator.DestroyBuffer(vertexBuffer, vertexBufferAllocation);
|
||||
|
||||
var indices = indices;
|
||||
CreateAndPushBuffer(out indexBuffer, let indexBufferAllocation, .IndexBuffer, &indices, sizeof(decltype(indices)));
|
||||
defer:: Vma.DestroyBuffer(allocator, indexBuffer, indexBufferAllocation);
|
||||
defer:: allocator.DestroyBuffer(indexBuffer, indexBufferAllocation);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user