MwStringPrintIntoBuffer
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
This commit is contained in:
parent
87c870a6c0
commit
35d2b4bb76
21 changed files with 233 additions and 331 deletions
|
|
@ -17,7 +17,7 @@
|
|||
char buffer[512];
|
||||
|
||||
char* string_VkResult(VkResult res) {
|
||||
sprintf(buffer, "%d", res);
|
||||
MwPrintIntoBuffer(buffer, 512, "%d", res);
|
||||
|
||||
return &buffer[0];
|
||||
}
|
||||
|
|
@ -292,8 +292,8 @@ void vulkan_setup(MwWidget handle) {
|
|||
swapchainCreateInfo.imageExtent = (VkExtent2D){.width = ow, .height = oh},
|
||||
swapchainCreateInfo.imageArrayLayers = 1,
|
||||
swapchainCreateInfo.imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT |
|
||||
VK_IMAGE_USAGE_TRANSFER_DST_BIT |
|
||||
VK_IMAGE_USAGE_SAMPLED_BIT;
|
||||
VK_IMAGE_USAGE_TRANSFER_DST_BIT |
|
||||
VK_IMAGE_USAGE_SAMPLED_BIT;
|
||||
// th is how we specify no transformation.
|
||||
swapchainCreateInfo.preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;
|
||||
swapchainCreateInfo.compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue